Timekeeping 1.0.0

dotnet add package Timekeeping --version 1.0.0
NuGet\Install-Package Timekeeping -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Timekeeping" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Timekeeping --version 1.0.0
#r "nuget: Timekeeping, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Timekeeping as a Cake Addin
#addin nuget:?package=Timekeeping&version=1.0.0

// Install Timekeeping as a Cake Tool
#tool nuget:?package=Timekeeping&version=1.0.0

Timekeeping

Author: Hritam Mondal

Description

This is a C# project that implements a stopwatch class that inherits from the System.Timers.Timer class and allows you to create and manage multiple stopwatch instances with different settings. You can use this project as a library in your own applications or as a console app that demonstrates the functionality of the stopwatch class.

Features

  • Create a stopwatch instance with a unique ID and optional parameters for seconds and intervals.
  • Start, stop, restart, or check the status of a stopwatch instance.
  • Add event handlers for the tick and end events of a stopwatch instance.
  • Manage multiple stopwatch instances using a static dictionary.

Installation

To install this project, you need to have the following prerequisites:

  • .NET 8.0 SDK or later
  • Visual Studio 2022 or later (optional)
  • JetBrains Rider (optional)

You can clone this project from GitHub using the following command:

git clone https://github.com/hritam-mondal/Timekeeping.git

Usage

To use this project as a library in your applications, you need to add a reference to the Timekeeping.dll file in your project. You can do this by using the dotnet add reference command, such as:

dotnet add reference path/to/Timekeeping.dll

Or you can use the Visual Studio IDE to add the reference. Then you can import the Timekeeping namespace in your code, such as:

using Timekeeping;

To use this project as a console app, you can run the following command in the project directory:

dotnet run

Or you can use the Visual Studio or JetBrains Rider to run the app. The console app will show you how to create and use a stopwatch instance, and how to handle the user input to control the app.

License

This repository is licensed with the MIT license.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 105 2/8/2024