diff options
| author | Russ Cox <rsc@golang.org> | 2011-11-30 11:59:44 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2011-11-30 11:59:44 -0500 |
| commit | efe3d35fc590bf8b439f56070aa1f070125c6e8e (patch) | |
| tree | 135f305b0e383917e799cb419419a42bfc0430f8 /src/pkg/runtime/windows/thread.c | |
| parent | 849fc19cab2c3059379b21dde019f521ce772f5c (diff) | |
| download | go-efe3d35fc590bf8b439f56070aa1f070125c6e8e.tar.xz | |
time: new Time, Duration, ZoneInfo types
R=r, bradfitz, gri, dsymonds, iant
CC=golang-dev
https://golang.org/cl/5392041
Diffstat (limited to 'src/pkg/runtime/windows/thread.c')
| -rw-r--r-- | src/pkg/runtime/windows/thread.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/pkg/runtime/windows/thread.c b/src/pkg/runtime/windows/thread.c index 9abc9cd728..4b963f374e 100644 --- a/src/pkg/runtime/windows/thread.c +++ b/src/pkg/runtime/windows/thread.c @@ -219,6 +219,18 @@ runtime·nanotime(void) return (filetime - 116444736000000000LL) * 100LL; } +void +time·now(int64 sec, int32 usec) +{ + int64 ns; + + ns = runtime·nanotime(); + sec = ns / 1000000000LL; + usec = ns - sec * 1000000000LL; + FLUSH(&sec); + FLUSH(&usec); +} + // Calling stdcall on os stack. #pragma textflag 7 void * |
