Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CPUTimeDiff ¶
CPUTimeDiff returns the differences of user CPU time and system CPU time used between two Rusage structs. It a no-op function for non-linux or appengine environment.
func GetCPUTime ¶
func GetCPUTime() int64
GetCPUTime returns the how much CPU time has passed since the start of this process. It always returns 0 under non-linux or appengine environment.
Types ¶
Click to show internal directories.
Click to hide internal directories.