timers

package
v0.0.0-...-d707387 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package timers stores points in time to be used for metrics.

Index

Constants

This section is empty.

Variables

View Source
var (
	// TimersRoot indicates the root Timers registry key.
	TimersRoot = `SOFTWARE\Glazier\Timers`
)

Functions

This section is empty.

Types

type Timer

type Timer struct {
	Name string
	Time time.Time
}

A Timer stores named time elements.

func NewTimer

func NewTimer(name string, at *time.Time) *Timer

NewTimer creates a new Timer.

func (*Timer) Load

func (t *Timer) Load() error

Load loads a timer object into the registry.

func (*Timer) Record

func (t *Timer) Record() error

Record records a timer object into the registry.

func (*Timer) TimeString

func (t *Timer) TimeString() string

TimeString renders a timer's time value with the default formatting.

Jump to

Keyboard shortcuts

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