Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Commit

Permalink
add a Duration type alias
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Oct 25, 2021
1 parent f7a1d13 commit 850609f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clock.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import (
"time"
)

// Re-export of time.Duration
type Duration = time.Duration

// Clock represents an interface to the functions in the standard library time
// package. Two implementations are available in the clock package. The first
// is a real-time clock which simply wraps the time package's functions. The
Expand Down

0 comments on commit 850609f

Please sign in to comment.