basic code timer for microcontroller usage
codeTimer.h@0:ef39a53751b9, 2021-10-31 (annotated)
- Committer:
- snapo
- Date:
- Sun Oct 31 10:42:20 2021 +0000
- Revision:
- 0:ef39a53751b9
basic timer for code optimisation
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
snapo | 0:ef39a53751b9 | 1 | #pragma once |
snapo | 0:ef39a53751b9 | 2 | #include "mbed.h" |
snapo | 0:ef39a53751b9 | 3 | |
snapo | 0:ef39a53751b9 | 4 | class CTIMER { |
snapo | 0:ef39a53751b9 | 5 | long long time_us_; |
snapo | 0:ef39a53751b9 | 6 | Timer t_; |
snapo | 0:ef39a53751b9 | 7 | public: |
snapo | 0:ef39a53751b9 | 8 | |
snapo | 0:ef39a53751b9 | 9 | void cTimerStart(); |
snapo | 0:ef39a53751b9 | 10 | void cTimerBreak(unsigned int timeInterval); |
snapo | 0:ef39a53751b9 | 11 | void cTimerStop(); |
snapo | 0:ef39a53751b9 | 12 | |
snapo | 0:ef39a53751b9 | 13 | }; |