mirror of
https://github.com/golang/go
synced 2024-09-05 16:04:50 +00:00
runtime: burn cpu before calling yield in windows runtime.systime
LGTM=dvyukov R=golang-codereviews, dvyukov CC=golang-codereviews https://golang.org/cl/117670043
This commit is contained in:
parent
6503d40051
commit
bf13b711bd
|
@ -280,7 +280,7 @@ runtime·systime(KSYSTEM_TIME *timeaddr)
|
|||
KSYSTEM_TIME t;
|
||||
int32 i;
|
||||
|
||||
for(i = 0; i < 10000; i++) {
|
||||
for(i = 1; i < 10000; i++) {
|
||||
// these fields must be read in that order (see URL above)
|
||||
t.High1Time = timeaddr->High1Time;
|
||||
t.LowPart = timeaddr->LowPart;
|
||||
|
|
Loading…
Reference in a new issue