mirror of
https://github.com/golang/go
synced 2024-10-05 04:31:22 -06:00
f437331f80
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
14 lines
309 B
Plaintext
14 lines
309 B
Plaintext
// 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.
|
|
|
|
// Runtime implementations to help package time.
|
|
|
|
package time
|
|
|
|
#include "runtime.h"
|
|
|
|
func Nanoseconds() (ret int64) {
|
|
ret = runtime·nanotime();
|
|
}
|