Documentation
¶
Overview ¶
Package timeutil converts between the units time is counted in across the framework.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SecondsToDuration ¶
SecondsToDuration is SecondsToNanoseconds as a time.Duration.
func SecondsToNanoseconds ¶
SecondsToNanoseconds converts seconds to nanoseconds, rounded to the nearest one: the float product can land just below the exact count (1.001 s gives 1000999999.9999999), and truncating it would put the time a nanosecond early.
Types ¶
This section is empty.