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
main.cpp
- Committer:
- mbed_official
- Date:
- 2013-02-13
- Revision:
- 0:27e1de20d3cb
- Child:
- 2:9152128dba25
File content as of revision 0:27e1de20d3cb:
#include "mbed.h" Timer t; int main() { t.start(); printf("Hello World!\n"); t.stop(); printf("The time taken was %f seconds\n", t.read()); }