Documentation
¶
Overview ¶
Package starttime holds the time the `runsc` command started. It is useful in order to plumb this time wherever needed.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendEnviron ¶
AppendEnviron appends the RUNSC_START_TIME_NANOS environment variable to the given environment, if it is not already present. Otherwise, it is preserved.
func Get ¶
Get returns the time the `runsc` command started on a best-effort basis. If the RUNSC_START_TIME_NANOS environment variable is set, it is used. Otherwise, it tries to get the time from /proc/self/status. If neither is available, it returns the time the function was first called.
func GoStartTime ¶
GoStartTime returns the time the `runsc` command's Go code started.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.