TraceEventCache.Timestamp Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the current number of ticks in the timer mechanism.

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

public long Timestamp { get; }

Property Value

Type: System.Int64

The tick counter value of the underlying timer mechanism.

The get accessor calls the Stopwatch.GetTimestamp method to get the timestamp. If the Stopwatch class uses a high-resolution performance counter, GetTimestamp returns the current value of that counter. If the Stopwatch class uses the system timer, GetTimestamp returns the Ticks property of DateTime.Now.

.NET Framework
Available since 2.0
Return to top
Show: