Timestamps 1.0.8

There is a newer version of this package available.
See the version list below for details.
dotnet add package Timestamps --version 1.0.8                
NuGet\Install-Package Timestamps -Version 1.0.8                
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="Timestamps" Version="1.0.8" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Timestamps --version 1.0.8                
#r "nuget: Timestamps, 1.0.8"                
#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 Timestamps as a Cake Addin
#addin nuget:?package=Timestamps&version=1.0.8

// Install Timestamps as a Cake Tool
#tool nuget:?package=Timestamps&version=1.0.8                

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.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 is compatible.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.6.2

    • No dependencies.
  • .NETFramework 4.8

    • No dependencies.
  • .NETStandard 2.1

    • No dependencies.
  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on Timestamps:

Package Downloads
RestWrapper

Simple, easy HTTP REST API client for integrating and consuming services in C#.

HttpServerLite

User-space HTTP and HTTPS server without http.sys written in C#. Please visit the project site README for details on implementation.

Watson.Core

Core library for Watson and Watson.Lite; simple, fast, async C# web servers for handling REST requests with SSL support, targeted to .NET Core, .NET Standard, and .NET Framework.

LiteGraph

LiteGraph is a simple graph database abstraction with a RESTful interface, JSON data query support, and GEXF output support.

View.Shared

View.io Shared Classes.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Timestamps:

Repository Stars
dotnet/WatsonWebserver
Watson is the fastest, easiest way to build scalable RESTful web servers and services in C#.
Version Downloads Last updated
1.0.9 9,903 5/21/2024
1.0.8 10,025 3/27/2024
1.0.7 118 3/27/2024
1.0.6 5,492 11/25/2023
1.0.5 7,827 10/21/2023
1.0.4 541 10/16/2023
1.0.3 1,162 9/26/2023
1.0.2 24,183 5/18/2023
1.0.1 612 5/8/2023
1.0.0 283 4/7/2023

Initial release