gtime

package
v0.0.0-...-04777cf Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Waiter

type Waiter struct {
	// contains filtered or unexported fields
}

Goal: Track and wait for a certain time with a starting time

func NewWaiter

func NewWaiter(goalDurationInMillis int64) *Waiter

Create a new Waiter

func (*Waiter) Wait

func (w *Waiter) Wait(overheadMillis ...int64) int64

Wait for the remaining time of goal time

Jump to

Keyboard shortcuts

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