Timestamps 1.0.9
dotnet add package Timestamps --version 1.0.9
NuGet\Install-Package Timestamps -Version 1.0.9
<PackageReference Include="Timestamps" Version="1.0.9" />
paket add Timestamps --version 1.0.9
#r "nuget: Timestamps, 1.0.9"
// Install Timestamps as a Cake Addin #addin nuget:?package=Timestamps&version=1.0.9 // Install Timestamps as a Cake Tool #tool nuget:?package=Timestamps&version=1.0.9
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.
Product | Versions 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. |
-
.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#.
|
Initial release