]> Cypherpunks repositories - gostls13.git/commit
Revert "runtime: use QPC for nanotime and time.now on windows/arm"
authorJordan Rhee <jordanrh@microsoft.com>
Wed, 19 Dec 2018 00:32:09 +0000 (16:32 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 19 Dec 2018 18:10:21 +0000 (18:10 +0000)
commitf880efcc1666e2b99fbda644eeff258e4a15dd38
tree2f1429afedb531c0f53c76b96b7ea75ab6cbb3dd
parente2897e4ac0e0c124f3bb06885b4e2ed22e18eabf
Revert "runtime: use QPC for nanotime and time.now on windows/arm"

This reverts change https://golang.org/cl/154758.

Restore the previous implementations of nanotime and time.now, which
are sufficiently high resolution and more efficient than
QueryPerformanceCounter. The intent of the change was to improve
resolution of tracing timestamps, but the change was overly broad
as it was only necessary to fix cputicks(). cputicks() is fixed in
a subsequent change.

Updates #26148

Change-Id: Ib9883d02fe1af2cc4940e866d8f6dc7622d47781
Reviewed-on: https://go-review.googlesource.com/c/154761
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/os_windows.go
src/runtime/sys_windows_arm.s