timex

package
v0.6.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package timex provides simple wrapper around adjtimex syscall.

Index

Constants

View Source
const (
	ADJ_OFFSET    = 0x0001
	ADJ_FREQUENCY = 0x0002
	ADJ_MAXERROR  = 0x0004
	ADJ_ESTERROR  = 0x0008
	ADJ_STATUS    = 0x0010
	ADJ_TIMECONST = 0x0020
	ADJ_TAI       = 0x0080
	ADJ_SETOFFSET = 0x0100
	ADJ_MICRO     = 0x1000
	ADJ_NANO      = 0x2000
	ADJ_TICK      = 0x4000
)

Values for timex.mode.

nolint: golint, stylecheck

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State int

State is clock state.

const (
	TIME_OK State = iota
	TIME_INS
	TIME_DEL
	TIME_OOP
	TIME_WAIT
	TIME_ERROR
)

Clock states.

nolint: golint, stylecheck

func Adjtimex

func Adjtimex(buf *syscall.Timex) (state State, err error)

Adjtimex provides a wrapper around syscall.Adjtimex.

func (State) String

func (state State) String() string

Jump to

Keyboard shortcuts

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