diff options
Diffstat (limited to 'vendor/gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer/time.go')
-rw-r--r-- | vendor/gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer/time.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer/time.go b/vendor/gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer/time.go new file mode 100644 index 000000000..459161c71 --- /dev/null +++ b/vendor/gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer/time.go @@ -0,0 +1,10 @@ +// +build !windows + +package tracer + +import "time" + +// now returns current UTC time in nanos. +func now() int64 { + return time.Now().UTC().UnixNano() +} |