clock

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package clock provides clock utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSystemClock

func NewSystemClock() ports.Clock

NewSystemClock creates a new system clock that implements ports.Clock.

Types

type SystemClock

type SystemClock struct{}

SystemClock implements shared.Clock using time.Now().

func (SystemClock) Now

func (SystemClock) Now() time.Time

Now returns the current UTC time.

Jump to

Keyboard shortcuts

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