Discover Packages
github.com/mohae/joefriday
sysinfo
uptime
package
Version:
v0.0.0-...-2d83fc9
Opens a new window with list of versions in this module.
Published: Sep 26, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package uptime gets the system's uptime using syscall.
NewTicker returns a new Ticker containing a Data channel that delivers the
data at intervals and an error channel that delivers any errors encountered.
Stop the ticker to signal the ticker to stop running. Stopping the ticker
does not close the Data channel; call Close to close both the ticker and the
data channel.
Ticker deliivers the uptime at intervals.
Close closes the ticker resources.
type Uptime struct {
Timestamp int64
Uptime int64
}
Uptime holds the current uptime and timestamp.
Get gets the current uptime information.
Get gets the current uptime information.
Source Files
¶
Directories
¶
Package uptime gets the system's uptime using syscall.
Package uptime gets the system's uptime using syscall.
Package uptime gets the system's uptime using syscall.
Package uptime gets the system's uptime using syscall.
Click to show internal directories.
Click to hide internal directories.