diff options
author | Russ Cox <rsc@golang.org> | 2009-06-01 22:15:08 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-06-01 22:15:08 -0700 |
commit | 55ae14e3b0197115c261879b722b7710ebded49e (patch) | |
tree | 397201cc75841231a6f0b730bbbe05db862eec30 /src/lib/syscall/time_amd64_linux.go | |
parent | 0d2eb8d007cef0e2d96d0ad39cea8b59e0a4336c (diff) | |
download | golang-55ae14e3b0197115c261879b722b7710ebded49e.tar.gz |
auto-generated, renamed, and deleted files
associated with CL 29709.
R=r
DELTA=6444 (3476 added, 2958 deleted, 10 changed)
OCL=29710
CL=29724
Diffstat (limited to 'src/lib/syscall/time_amd64_linux.go')
-rw-r--r-- | src/lib/syscall/time_amd64_linux.go | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/lib/syscall/time_amd64_linux.go b/src/lib/syscall/time_amd64_linux.go deleted file mode 100644 index 67fc51231..000000000 --- a/src/lib/syscall/time_amd64_linux.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright 2009 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -package syscall - -import ( - "syscall"; - "unsafe"; -) - -func Gettimeofday() (sec, nsec, errno int64) { - var tv Timeval; - r1, r2, e := Syscall(SYS_GETTIMEOFDAY, int64(uintptr(unsafe.Pointer(&tv))), 0, 0); - if e != 0 { - return 0, 0, e - } - return int64(tv.Sec), int64(tv.Usec*1000), 0 -} - -func Nstotimeval(ns int64, tv *Timeval) { - ns += 999; // round up - tv.Sec = int64(ns/1000000000); - tv.Usec = uint64(ns%1000000000 / 1000); -} |