util

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Min

func Min(x, y int) int

Min is a helpful function to take the min between two integers.

func TimeTrack

func TimeTrack(start time.Time, name string, profile string)

TimeTrack is a function that tracks the time spent and outputs specific timing information. This is important for chainquery profiling and is used throughout. It can be reused by just passing `always` as the profile. The basic usage is `defer util.TimeTrack(time.Now(),"<useful identifier>","<profile>")`. This should be placed at the top of the function where time is to be tracked, or at any point where you want to start tracking time.

Types

This section is empty.

Jump to

Keyboard shortcuts

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