Creating a CoxBox with the mbed

Dependencies:   mbed C12832 SMARTGPU2

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers TimerCB.h Source File

TimerCB.h

00001 #ifndef __TimerCB__
00002 #define __TimerCB__
00003 
00004 #include "mbed.h"
00005 
00006 class TimerCB{
00007 private:
00008     Timer timer;
00009     bool running;
00010     
00011 public:
00012     TimerCB();
00013     int getMinutes();
00014     int getSeconds();
00015     int getMS();
00016     void start();
00017     void stop();
00018     void reset();
00019     bool isRunning();
00020 };
00021 
00022 #endif /* defined(__TimerCB__) */