Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for QueryPerformanceCounter (0.24 sec)

  1. src/testing/testing_windows.go

    // highPrecisionTimeNow returns high precision time for benchmarking.
    func highPrecisionTimeNow() highPrecisionTime {
    	var t highPrecisionTime
    	// This should always succeed for Windows XP and above.
    	t.now = windows.QueryPerformanceCounter()
    	return t
    }
    
    func (a highPrecisionTime) sub(b highPrecisionTime) time.Duration {
    	delta := a.now - b.now
    
    	if queryPerformanceFrequency == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top