Help us shape the future of Go! Take the 2026 Go Developer Survey

timer

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Overview

sinq - A concurrent integration testing tool Copyright (C) 2026 Veitangie SPDX-License-Identifier: GPL-3.0-or-later

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clock

type Clock interface {
	Now() time.Time
}

type DefaultClock

type DefaultClock struct{}

func (DefaultClock) Now

func (d DefaultClock) Now() time.Time

type Timer

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

func NewTimer

func NewTimer(clock Clock) Timer

func (*Timer) Start

func (r *Timer) Start()

func (*Timer) StartedAt

func (r *Timer) StartedAt() time.Time

func (*Timer) Time

func (r *Timer) Time() time.Duration

Jump to

Keyboard shortcuts

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