Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API MPU6050 mbed nRF51822
Diff: AppTime.cpp
- Revision:
- 10:eed92ffd0bba
diff -r e9d6a9758cf7 -r eed92ffd0bba AppTime.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/AppTime.cpp Thu Nov 15 15:13:52 2018 +0000 @@ -0,0 +1,15 @@ +#include "AppTime.h" + +#include "mbed.h" +#include "Timer.h" + +static Timer runTime; + +void AppTime::init(){ + runTime.start(); +} + +float AppTime::getTime(){ + return runTime; +} +