loc

lockstep

JavaScript library to create accurate timers.

Showing:

4 Versions

0.4.0

Adds new functionality:

  • The .when() method fires a callback at the specified time.
  • The .every() method fires a callback on the specified time interval.
  • The .while() method fires a callback at each step through the specified time interval.
  • The .during() method fires callbacks at the beginning and ending of the specified time interval.
  • The .beginning() method fires a callback at each step, starting at the specified time.
  • The .ending() method fires a callback at each step, ending at the specified time.
  • The .registerCallback() method allows you to specify custom callback behavior.

Also includes additional tests.

0.3.1

0.3.0

Adds new functionality:

  • The .add() method adds elapsed time, clock time or counts to the running totals.
  • The .subtract() method removes elapsed time, clock time or counts from the running totals.
  • New features in the example to illustrate the new methods.
  • Improvements to the build system (error handling, version bump).

Also includes additional tests.

0.1.1

Intended for experimental use; not yet robust enough for production, and API is subject to rapid change. Basic info:

  • Core API methods in place.
  • Minimal, but essential functionality.
  • Cursory tests (passing).
  • Relatively complete build system.
  • UMD compatibility via Browserify.