]> Cypherpunks repositories - gostls13.git/commit
runtime: use QPC to implement cputicks() on windows/arm
authorJordan Rhee <jordanrh@microsoft.com>
Wed, 19 Dec 2018 00:41:57 +0000 (16:41 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 20 Dec 2018 00:23:03 +0000 (00:23 +0000)
commit84066f1b0b68761a75ce9064f4c412f751ee2168
tree496281c1451a09846157cf03138b0f1a7b958328
parentd0f8a7517ab0b33c8e3dd49294800dd6144e4cee
runtime: use QPC to implement cputicks() on windows/arm

Tracing uses cputicks() to generate trace event timestamps. cputicks()
is expected to be a high resolution clock source. On Windows/ARM,
call QueryPerformanceCounter() which is the highest resolution clock
source available.

Updates #26148

Change-Id: I987fa556060b3d60c02f07b87b9e6320b9b026e2
Reviewed-on: https://go-review.googlesource.com/c/154762
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/os_windows.go
src/runtime/os_windows_arm.go