unixtime

package
v1.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Now

func Now() uint32

Now returns time as a Unix time, the number of seconds elapsed since program start.

func SetNow added in v1.1.0

func SetNow(t uint32)

SetNow sets the current time.

NOTE: use only for testing and debugging.

func Start

func Start()

Start should be called when the cache instance is created to initialize the timer.

func StartTime added in v1.2.0

func StartTime() int64

StartTime returns the start time of the program.

func Stop

func Stop()

Stop should be called when closing and stopping the cache instance to stop the timer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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