host

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package host extracts data from the host, such as the system's boot time or the tick rate of the system clock.

Package host extracts data from the host, such as the system's boot time or the tick rate of the system clock.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootTime

func BootTime() (int64, error)

BootTime parses /proc/uptime returns the boot time in seconds since the Epoch, 1970-01-01 00:00:00 +0000 (UTC).

func ClockTicks

func ClockTicks() (int64, error)

ClockTicks returns sysconf(SC_CLK_TCK).

Types

This section is empty.

Jump to

Keyboard shortcuts

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