Documentation ¶
Overview ¶
Package units contains the various units of measurement for a metric.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromSeconds ¶
Returns the conversion factor between seconds and u. For example FromSeconds(Millisecond) returns 1000. Returns 1.0 if u is not a time unit.
func FromSecondsRational ¶
FromSecondsRational is the same as FromSeconds but returns answer as a rational number.
Types ¶
Click to show internal directories.
Click to hide internal directories.