Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for traceClockUnitsPerSecond (0.2 sec)

  1. src/runtime/tracetime.go

    func traceClockNow() traceTime {
    	if osHasLowResClock {
    		return traceTime(cputicks() / traceTimeDiv)
    	}
    	return traceTime(nanotime() / traceTimeDiv)
    }
    
    // traceClockUnitsPerSecond estimates the number of trace clock units per
    // second that elapse.
    func traceClockUnitsPerSecond() uint64 {
    	if osHasLowResClock {
    		// We're using cputicks as our clock, so we need a real estimate.
    		return uint64(ticksPerSecond() / traceTimeDiv)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top