- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for QueryPerformanceCounter (0.36 sec)
-
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) -
src/internal/syscall/windows/syscall_windows.go
} if n < uint32(len(buf)) { break } buf = make([]uint16, n) } return syscall.UTF16ToString(buf), nil } // QueryPerformanceCounter retrieves the current value of performance counter. // //go:linkname QueryPerformanceCounter func QueryPerformanceCounter() int64 // Implemented in runtime package. // QueryPerformanceFrequency retrieves the frequency of the performance counter.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 22:55:25 UTC 2024 - 15.5K bytes - Viewed (0) -
src/runtime/os_windows.go
//go:cgo_import_dynamic runtime._LoadLibraryW LoadLibraryW%1 "kernel32.dll" //go:cgo_import_dynamic runtime._PostQueuedCompletionStatus PostQueuedCompletionStatus%4 "kernel32.dll" //go:cgo_import_dynamic runtime._QueryPerformanceCounter QueryPerformanceCounter%1 "kernel32.dll" //go:cgo_import_dynamic runtime._QueryPerformanceFrequency QueryPerformanceFrequency%1 "kernel32.dll" //go:cgo_import_dynamic runtime._RaiseFailFastException RaiseFailFastException%3 "kernel32.dll"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 22:55:25 UTC 2024 - 41.5K bytes - Viewed (0)