cordova-plugin-uptime
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "cordova-plugin-uptime", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "This plugin return the time spent in milliseconds since boot (without sleep time).", | ||
@@ -5,0 +5,0 @@ "cordova": { |
# cordova-plugin-uptime | ||
@@ -16,2 +17,4 @@ | ||
**Ionic Framework 2+ - TypeScript** | ||
import { Uptime } from '@ionic-native/uptime'; | ||
@@ -26,3 +29,14 @@ | ||
.catch((error: any) => console.log(error)); | ||
**ES5 based platforms:** | ||
Uptime.getUptime( | ||
function(uptime) { | ||
console.log('Uptime (ms): ', uptime); | ||
}, | ||
function(err) { | ||
console.log(err); | ||
} | ||
); | ||
## Author | ||
This plugin is made with :heart: by [Silviu Stroe](https://silviu-s.com/) |
Sorry, the diff of this file is not supported yet
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
15782
11
41
1