We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fb7acb commit abfd578Copy full SHA for abfd578
src/runtime/trace2time.go
@@ -61,7 +61,7 @@ func traceClockNow() traceTime {
61
func traceClockUnitsPerSecond() uint64 {
62
if osHasLowResClock {
63
// We're using cputicks as our clock, so we need a real estimate.
64
- return uint64(ticksPerSecond())
+ return uint64(ticksPerSecond() / traceTimeDiv)
65
}
66
// Our clock is nanotime, so it's just the constant time division.
67
// (trace clock units / nanoseconds) * (1e9 nanoseconds / 1 second)
0 commit comments