The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
Diff: Timer.h
- Revision:
- 98:8ab26030e058
- Parent:
- 65:5798e58a58b1
- Child:
- 100:cbbeb26dbd92
diff -r 433970e64889 -r 8ab26030e058 Timer.h --- a/Timer.h Tue Apr 14 10:58:58 2015 +0200 +++ b/Timer.h Wed Apr 29 10:16:23 2015 +0100 @@ -17,6 +17,7 @@ #define MBED_TIMER_H #include "platform.h" +#include "ticker_api.h" namespace mbed { @@ -45,6 +46,7 @@ public: Timer(); + Timer(const ticker_data_t *const data); /** Start the timer */ @@ -81,6 +83,7 @@ int _running; // whether the timer is running unsigned int _start; // the start time of the latest slice int _time; // any accumulated time from previous slices + const ticker_data_t *const _ticker_data; }; } // namespace mbed