clock
A fakeable wrapper for dart:core clock APIs.
1.1.2
8.0M downloads/mo
#67 most downloaded on pub.dev
dart-lang/tools
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 3.6 years
Some releases are documented
notes for 5 of 9 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
13 releases · first in 2014
0 releases in the last 12 months
see the full history below
Release timeline
13 releases · Oct 2014 to Oct 2024Releases
latest 13-
1.1.228 Oct 2024 -
1.1.116 Jun 2022 -
1.1.002 Feb 2021 -
1.1.0-nullsafety.303 Nov 2020 pre-releaseNothing published for this version
-
1.1.0-nullsafety.223 Oct 2020 pre-releaseNothing published for this version
-
1.1.0-nullsafety.122 Sep 2020 pre-releaseNothing published for this version
-
1.1.0-nullsafety29 Jul 2020 pre-releaseNothing published for this version
-
1.0.114 Jul 2018 -
1.0.001 May 2018Release notes
Open source →This release contains the
Clockclass that was defined inquiver. It's backwards-compatible with thequiverversion, and mostly backwards-compatible with the old version of theclockpackage.New Features
-
A top-level
clockfield has been added that provides a defaultClockimplementation. It can be controlled by thewithClock()function. It should generally be used in preference to manual dependency-injection, since it will work with thefake_asyncpackage. -
A
Clock.stopwatch()method has been added that creates aStopwatchthat uses the clock as its source of time.
Changes Relative to
clock0.1-
The top-level
newgetter andgetStopwatch()methods are deprecated.clock.new()andclock.stopwatch()should be used instead. -
Clock.getStopwatch()is deprecated.Clock.stopwatch()should be used instead. -
The
isFinalargument towithClock()is deprecated. -
new Clock()now takes an optional positional argument that returns the current time as aDateTimeinstead of its old arguments. -
Clock.now()is now a method rather than a getter.
-
-
0.1.207 Oct 2014Nothing published for this version
-
0.1.107 Oct 2014Nothing published for this version
-
0.1.007 Oct 2014Nothing published for this version
-
0.0.106 Oct 2014Nothing published for this version