1 // Copyright 2018 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
9 #include "time_windows.h"
11 TEXT time·now(SB),NOSPLIT,$0-24
12 MOVD $_INTERRUPT_TIME, R3
18 MOVD $_SYSTEM_TIME, R3
20 // convert to Unix epoch (but still 100ns units)
21 #define delta 116444736000000000
27 // Code stolen from compiler output for:
30 // func f() (sec uint64, nsec uint32) { return x / 1000000000, uint32(x % 1000000000) }
33 MOVD $-8543223759426509416, R2