uptime

package
v1.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Uptime

func Uptime() (int64, error)

Uptime reads system uptime from /proc/uptime and returns the number of seconds since last system boot.

func UptimeFromFile

func UptimeFromFile(filepath string) (int64, error)

UptimeFromFile reads system uptime information from filepath and returns the number of seconds since last system boot.

Types

type UptimeFuncType

type UptimeFuncType func() (int64, error)

UptimeFuncType cleans up function arguments or return type.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL