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.
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).
- Tracks system uptime and displays as running.
- Simple and lightweight user interface.
- Can be used on any Windows-based machine.
.NET Framework 4.7 or higher. Windows operating system.
This repository was developed using the latest operating systems, software and tools.
- Operating System : Windows10, Windows11
git clone https://github.com/iamx-ariful-islam/running-time.git
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.
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.
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.
- 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.
Contributions, suggestions, and feedback are always welcome! ❤️ To contribute:
- Fork the repository
- Create a new branch (
feature/new-feature) - Commit your changes
- Push and submit a Pull Request
💬 You can also open an issue if you’d like to discuss a feature or report a bug.
The MIT License (MIT)
"Good design is about making things simple yet significant"
— Md. Ariful Islam