Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Counter ¶
func Counter() (count int64)
A fast timing counter accessing the cheapest fastest counter your cpu can provide. Guaranteed to increase monotonically across successive calls on the same CPU core. On AMD64 CPUs we use the RDTSC instruction
func IsCounterSMPMonotonic ¶
func IsCounterSMPMonotonic() bool
Indicates whether the results returned from a call to Counter() is guaranteed to be monotonically increasing per CPU and across multiple CPUs on the same socket. No guarantee is made across CPU sockets On AMD64 CPUs we test for the 'Invariant TSC' property using CPUID
func IsCounterSteady ¶
func IsCounterSteady() bool
Indicates whether the results returned from a call to Counter() increase at a uniform rate, independent of the actual clock speed of the CPU it is running on. On AMD64 CPUs we test for the 'Invariant TSC' property using CPUID
Types ¶
This section is empty.