Timestamps 1.0.11
Timestamps
Simple class with start time, end time, and total time, useful for measuring operational runtime.
Timestamps provides a simple class that allows you to record start time, end time, and gather total runtime for a given operation.
New in v1.0.x
- Initial release
Help or Feedback
Need help or have feedback? Please file an issue here!
Simple Examples
using Timestamps;
void Main(string[] args)
{
Timestamp ts = new Timestamp();
ts.Start = DateTime.UtcNow;
ts.End = DateTime.UtcNow.AddSeconds(10);
Console.WriteLine("Total milliseconds: " + ts.TotalMs + "ms");
// add log messages
ts.AddMessage("Hello, world!");
ts.AddMessage("Hello, but a different world!");
Dictionary<DateTime, string> messages = ts.Messages;
// add metadata
ts.Metadata = myObject; // anything you like
}
Version History
Please refer to CHANGELOG.md.
Showing the top 20 packages that depend on Timestamps.
| Packages | Downloads |
|---|---|
|
RestWrapper
Simple, easy HTTP REST API client for integrating and consuming services in C#.
|
5 |
Initial release
.NET Framework 4.6.2
- No dependencies.
.NET Framework 4.8
- No dependencies.
.NET 6.0
- No dependencies.
.NET 8.0
- No dependencies.
.NET Standard 2.0
- No dependencies.
.NET Standard 2.1
- No dependencies.