Skip to content

Commit

Permalink
Revert "Change ProcessorInfo to CPU"
Browse files Browse the repository at this point in the history
This reverts commit 0b6b557.
  • Loading branch information
charlesbetros committed Aug 27, 2019
1 parent 0b6b557 commit 6a4a170
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static long GetTimestamp()
{
if (Stopwatch.IsHighResolution)
// see https://msdn.microsoft.com/en-us/library/windows/desktop/dn553408(v=vs.85).aspx for more details
return (long)(CPU.GetCPUUptime() / (double)CPU.GetCPUCycleSpeed() * 1000000d);
return (long)(ProcessorInformation.GetCycleCount() / (double)ProcessorInformation.GetCycleRate() * 1000000d);
else
return DateTime.UtcNow.Ticks;
}
Expand Down

0 comments on commit 6a4a170

Please sign in to comment.