Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A simple tool that displays your computer’s current uptime as a live running time clock — perfect for monitoring how long your system has been active.

License

Notifications You must be signed in to change notification settings

iamx-ariful-islam/Running-Time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

5 Commits

Repository files navigation

Running Time

Computer running time is a simple C# gui application.

C# (C-Sharp) is a modern, object-oriented programming language developed by Microsoft as part of the .NET framework. It is widely used for building a variety of applications, including desktop, web and mobile applications. C# is known for its simplicity, flexibility, and powerful features, such as garbage collection, type safety and easy integration with other languages in the .NET ecosystem.

In the context of GUI (Graphical User Interface) applications, C# provides a rich set of tools and libraries to build interactive and user-friendly interfaces. The primary framework used for C# GUI applications is Windows Forms for simpler applications and WPF (Windows Presentation Foundation) for more modern and feature-rich applications. These frameworks allow developers to design sophisticated UIs using controls like buttons, textboxes, labels and complex layouts, combined with event-driven programming to handle user interactions.

Descriptions

The computer Running Time tracker is a C# application designed to monitor running time of a computer. This project provides an easy way to track how long your system or computer has been running since the last restart, helping users manage their system uptime efficiently. It can be useful for system administrators, developers or anyone interested in monitoring their system's performance and uptime for various purposes.

This application will display the total running time in a user-friendly format (e.g., hours, minutes, seconds).

Features

  • Tracks system uptime and displays as running.
  • Simple and lightweight user interface.
  • Can be used on any Windows-based machine.

Requirements

.NET Framework 4.7 or higher. Windows operating system.

Task Testing Environment

This repository was developed using the latest operating systems, software and tools.

  • Operating System : Windows10, Windows11

Clone the Repository

git clone https://github.com/iamx-ariful-islam/running-time.git

Install

After opening the project, click on Need for Font.ttf to install the font. Then, install the application to begin. The application will start tracking your computer's uptime as soon as it's launched and will automatically run at startup.

Note

If you want to change the scrolling text, go to C:\\Running Time Note\\Notes.txt, open the text file add your scrolling text and save it.

Demo Preview

Demo Preview

Code Explanation

This C# GUI application tracks and displays the running time or uptime of the computer. The application presents a graphical interface where users can see how long the system has been running since the last reboot.

  • Form Design: The main form of the application includes a Label that displays the uptime in a readable format (e.g., hours, minutes, seconds). The application also includes a Timer control, which triggers periodic updates to refresh the running time.
  • Retrieve System Uptime: To retrieve the system uptime, the application uses the System.Diagnostics namespace, specifically the Environment class. The uptime is calculated by subtracting the system's start time from the current time.
  • Timer Update: A Timer control is set up to run at regular intervals (e.g., every second). Each tick of the timer triggers an update to the Label on the form, showing the updated running time.
  • Event Handling: When the application is started, the Timer starts ticking and periodically updates the label with the current uptime.
  • Error Handling: The application implements simple error handling to ensure the uptime is retrieved correctly. If there's an issue, it displays an error message.

Acknowledgments

  • Thanks to .NET Framework for providing the necessary tools for development.
  • Special thanks to Microsoft for Visual Studio, which made the development process smooth and efficient.

Contributing

Contributions, suggestions, and feedback are always welcome! ❤️ To contribute:

  1. Fork the repository
  2. Create a new branch (feature/new-feature)
  3. Commit your changes
  4. Push and submit a Pull Request

💬 You can also open an issue if you’d like to discuss a feature or report a bug.

For more or connect with me

License

The MIT License (MIT)

Thank You for Visiting!

"Good design is about making things simple yet significant"
Md. Ariful Islam

About

A simple tool that displays your computer’s current uptime as a live running time clock — perfect for monitoring how long your system has been active.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /