github.com/juju/clock@v1.0.3/testclock/interfaces.go (about) 1 // Copyright 2022 Canonical Ltd. 2 // Licensed under the LGPLv3, see LICENCE file for details. 3 4 package testclock 5 6 import ( 7 "time" 8 9 "github.com/juju/clock" 10 ) 11 12 // AdvanceableClock is a clock that can be advanced to trigger timers/trigger timers earlier 13 // than they would otherwise. 14 type AdvanceableClock interface { 15 clock.Clock 16 Advance(time.Duration) 17 }