FakeTimeProvider.GetTimestamp Method

Definition

Gets the current high-frequency value designed to measure small time intervals with high accuracy in the timer mechanism.

C#
public override long GetTimestamp();

Returns

A long integer representing the high-frequency counter value of the underlying timer mechanism.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)