time_wait

package
Version: v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcNextTime

func CalcNextTime(cycle int64, offset int64) int64

CalcNextTime calculates the nearest time from now, given cycle and offset

Params:

- cycle: cycle in seconds
- offset: offset of the next time; in seconds

Return:

- timestamp of next time

func WaitTill

func WaitTill(toTime int64)

WaitTill waits until toTime

Params:

- toTime: time to wait until. the number of seconds elapsed since January 1, 1970 UTC.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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