The LowPowerTimer class is used to measure time. The time will be the amount of time between when the start() and stop() functions are run. The Timer class counts from 0 up.

Fork of Timer_HelloWorld by mbed_example

Files at this revision

API Documentation at this revision

Comitter:
deepikabhavnani
Date:
Fri May 25 18:33:45 2018 +0000
Parent:
4:0d21eea06da7
Commit message:
Example to show low power timer usage

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 0d21eea06da7 -r 13760b19fc77 main.cpp
--- a/main.cpp	Fri Jun 23 16:58:22 2017 -0500
+++ b/main.cpp	Fri May 25 18:33:45 2018 +0000
@@ -15,7 +15,7 @@
  */
 #include "mbed.h"
  
-Timer t;
+LowPowerTimer t;
  
 int main() {
     t.start();