1// +build !windows
2
3// Package fasttime gets wallclock time, but super fast.
4package fasttime
5
6import (
7	_ "unsafe"
8)
9
10//go:noescape
11//go:linkname walltime runtime.walltime
12func walltime() (int64, int32)
13
14// Now returns a monotonic clock value. The actual value will differ across
15// systems, but that's okay because we generally only care about the deltas.
16func Now() uint64 {
17	x, y := walltime()
18	return uint64(x)*1e9 + uint64(y)
19}
20