示例#1
0
 static ThreadCycleTimeClock()
 {
     _isAvailable = CycleClockHelpers.EstimateThreadCycleTimeFrequency(
         Chronometer.BestClock,
         1000 * 1000, out _frequency);
 }
示例#2
0
 /// <summary>Gets the timestamp.</summary>
 /// <returns></returns>
 public long GetTimestamp() =>
 CycleClockHelpers.GetCurrentThreadTimestamp();
示例#3
0
 /// <summary>Gets the timestamp.</summary>
 /// <returns></returns>
 public long GetTimestamp() =>
 CycleClockHelpers.GetCurrentProcessTimestamp();