Timestamps 1.0.4

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

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

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 was computed.  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.

NuGet packages (6)

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.

View.Shared

View.io Shared Classes.

Blobject.Core

BLOB storage client for Microsoft Azure, Amazon S3 (including compatible storage e.g. Minio, Less3, Ceph, View), CIFS/SMB (Windows file shares), NFS (UNIX and Linux file shares), and local filesystem written in C#.

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 204 5/21/2024
1.0.8 2,889 3/27/2024
1.0.7 83 3/27/2024
1.0.6 3,140 11/25/2023
1.0.5 4,895 10/21/2023
1.0.4 481 10/16/2023
1.0.3 1,022 9/26/2023
1.0.2 16,878 5/18/2023
1.0.1 536 5/8/2023
1.0.0 243 4/7/2023

Initial release