Timer peripheral class. This lib. include function ; WAIT, stop, reset, start, and read_ms.

Dependents:   DetectFreqAboveTH RN41

myTimer.h

Committer:
AkinoriHashimoto
Date:
2015-10-06
Revision:
2:3060a6604f13
Parent:
1:685c0f37a569
Child:
5:c9304777ce1a

File content as of revision 2:3060a6604f13:

#pragma once

#include "mbed.h"

/** Timer Class.
 *
 *  stop, reset, start, read_ms.
*/
class myTimer
{
private:
    Timer timer;
    
public:
    myTimer();
    void stop();
    void reset();
    void start(bool _RESET=false);
    int read_ms(bool _START=true, bool _RESET=true, bool _STOP=true);
    void wait_ms(int waitTime, bool _START=true, bool _RESET=true, bool _STOP=true);
};

// EOF