Miss any of our Open RFC calls?Watch the recordings here! »

cordova-plugin-boottime

0.0.1 • Public • Published

cordova-plugin-boottime

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.

Installation

This requires cordova 5.0+

    cordova plugin add cordova-plugin-boottime

Supported Platforms

  • Android
  • iOS

Usage

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

Release notes

Apr 7, 2017 Initial release

Install

npm i cordova-plugin-boottime

DownloadsWeekly Downloads

38

Version

0.0.1

License

ISC

Last publish

Collaborators

  • avatar