tsc

package module
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BenchmarkEnd

func BenchmarkEnd() uint64

BenchmarkEnd end a benchmark

func BenchmarkStart

func BenchmarkStart() uint64

BenchmarkStart start a benchmark

func Cpuid

func Cpuid()

Cpuid runs CPUID, mainly useful to benchmark it.

func Frequency

func Frequency(n int, period time.Duration) float64

Frequency returns your TSC frequency will take the max on "n" tries and will take "period" to find out

func Rdtscp

func Rdtscp() (ret uint64, cpu uint32)

Rdtscp returns TSC and core ID if your OS support that (for instance, linux does, darwin dos not)

func Since

func Since(start uint64) uint64

Since returns the ticks diff

func Ticks

func Ticks() uint64

Ticks runs Rdtscp but only return TSC, so one less write (probably useless)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL