Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including cordova-plugin-boottime with all npm packages installed. Try it out:

cordova-plugin-boottime lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("cordova-plugin-boottime/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

cordova-plugin-boottime v0.0.1

Returns milliseconds since boot, including time spent in sleep.


Plugin provides a steady, monotonic elapsed time (in milliseconds) since the system was booted - including time spent in sleep. Plugin is for general purpose interval timing, such as creating synchronized clock with server's clock.


This requires cordova 5.0+

    cordova plugin add cordova-plugin-boottime

Supported Platforms

  • Android
  • iOS


    function(result) {  // Success callback
        console.log('Milliseconds from boot: ' + result);
    function(error) {  // Error callback

Release notes

Apr 7, 2017 Initial release

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free