From 850609f90f83719ec0eb480eaa5cd08fceb85206 Mon Sep 17 00:00:00 2001 From: "Dustin J. Mitchell" Date: Mon, 25 Oct 2021 18:03:32 +0000 Subject: [PATCH] add a Duration type alias --- clock.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clock.go b/clock.go index a6b56a8..a16973e 100644 --- a/clock.go +++ b/clock.go @@ -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