Timestamps 1.0.11

timestamps

Timestamps

Simple class with start time, end time, and total time, useful for measuring operational runtime.

NuGet Version NuGet

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.

Version Downloads Last updated
1.0.11 5 01/08/2026
1.0.10 0 01/07/2025
1.0.9 0 05/21/2024
1.0.8 0 03/27/2024
1.0.7 0 03/27/2024
1.0.6 0 11/25/2023
1.0.5 0 10/21/2023
1.0.4 0 10/16/2023
1.0.3 0 09/26/2023
1.0.2 0 05/18/2023
1.0.1 0 05/08/2023
1.0.0 0 04/07/2023