diff options
| author | Russ Cox <rsc@golang.org> | 2011-11-03 17:35:28 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2011-11-03 17:35:28 -0400 |
| commit | f437331f80b05944e8f15b2f81429729101a9455 (patch) | |
| tree | 213071dde50770d53d80083bf6d0b07937e70bf5 /src/pkg/runtime/runtime.c | |
| parent | 31452a36189e48ad178a85299e2b189701d8f358 (diff) | |
| download | go-f437331f80b05944e8f15b2f81429729101a9455.tar.xz | |
time: faster Nanoseconds call
runtime knows how to get the time of day
without allocating memory.
R=golang-dev, dsymonds, dave, hectorchu, r, cw
CC=golang-dev
https://golang.org/cl/5297078
Diffstat (limited to 'src/pkg/runtime/runtime.c')
| -rw-r--r-- | src/pkg/runtime/runtime.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/pkg/runtime/runtime.c b/src/pkg/runtime/runtime.c index ae6fd877c7..a82e8b6b49 100644 --- a/src/pkg/runtime/runtime.c +++ b/src/pkg/runtime/runtime.c @@ -654,18 +654,6 @@ runtime·algarray[] = [ANOEQ128] { runtime·nohash, runtime·noequal, memprint, (void*)memcopy128 }, }; -int64 -runtime·nanotime(void) -{ - int64 sec; - int32 usec; - - sec = 0; - usec = 0; - runtime·gettime(&sec, &usec); - return sec*1000000000 + (int64)usec*1000; -} - void runtime·Caller(int32 skip, uintptr retpc, String retfile, int32 retline, bool retbool) { |
