PackageTrack
Sign in Get early access

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 2024
2015 2017 2019 2021 2023 2025
Release Pre-release

Releases

latest 13
  1. 1.1.2 28 Oct 2024
    Release notes
    • Require Dart 3.4
    • Move to dart-lang/tools monorepo.
    Open source →
  2. 1.1.1 16 Jun 2022
    Release notes
    • Switch to using package:lints.
    • Populate the pubspec repository field.
    Open source →
  3. 1.1.0 02 Feb 2021
    Release notes
    • Update SDK constraints to >=2.12.0 <3.0.0.
    • Update to null safety.
    Open source →
  4. 1.1.0-nullsafety.3 03 Nov 2020 pre-release

    Nothing published for this version

  5. 1.1.0-nullsafety.2 23 Oct 2020 pre-release

    Nothing published for this version

  6. 1.1.0-nullsafety.1 22 Sep 2020 pre-release

    Nothing published for this version

  7. 1.1.0-nullsafety 29 Jul 2020 pre-release

    Nothing published for this version

  8. 1.0.1 14 Jul 2018
    Release notes
    • Update to lowercase Dart core library constants.
    Open source →
  9. 1.0.0 01 May 2018
    Release notes

    This release contains the Clock class that was defined in quiver. It's backwards-compatible with the quiver version, and mostly backwards-compatible with the old version of the clock package.

    New Features

    • A top-level clock field has been added that provides a default Clock implementation. It can be controlled by the withClock() function. It should generally be used in preference to manual dependency-injection, since it will work with the fake_async package.

    • A Clock.stopwatch() method has been added that creates a Stopwatch that uses the clock as its source of time.

    Changes Relative to clock 0.1

    • The top-level new getter and getStopwatch() methods are deprecated. clock.new() and clock.stopwatch() should be used instead.

    • Clock.getStopwatch() is deprecated. Clock.stopwatch() should be used instead.

    • The isFinal argument to withClock() is deprecated.

    • new Clock() now takes an optional positional argument that returns the current time as a DateTime instead of its old arguments.

    • Clock.now() is now a method rather than a getter.

    Open source →
  10. 0.1.2 07 Oct 2014

    Nothing published for this version

  11. 0.1.1 07 Oct 2014

    Nothing published for this version

  12. 0.1.0 07 Oct 2014

    Nothing published for this version

  13. 0.0.1 06 Oct 2014

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive