bowen liu
/
mbed-os-example-blinky
ex
Fork of mbed-os-example-mbed5-blinky by
DuerOS-Light-SDK-v1.1.0/duer-os-light/src/utility/baidu_time_calculate_list.h@47:9e361da97763, 2017-07-18 (annotated)
- Committer:
- TMBOY
- Date:
- Tue Jul 18 16:54:45 2017 +0800
- Revision:
- 47:9e361da97763
?
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
TMBOY | 47:9e361da97763 | 1 | #ifndef __BAIDU_TIME_CALCULATE_H__ |
TMBOY | 47:9e361da97763 | 2 | #define __BAIDU_TIME_CALCULATE_H__ |
TMBOY | 47:9e361da97763 | 3 | #include "baidu_measure_time_list.h" |
TMBOY | 47:9e361da97763 | 4 | |
TMBOY | 47:9e361da97763 | 5 | #define TIME_BEGIN(key) do{\ |
TMBOY | 47:9e361da97763 | 6 | baidu::os::MeasureTimeList::getInstMeasureTime(time_current_get)->addMeasureValue(key);\ |
TMBOY | 47:9e361da97763 | 7 | }while(0) |
TMBOY | 47:9e361da97763 | 8 | |
TMBOY | 47:9e361da97763 | 9 | #define TIME_END(key, argument) do{\ |
TMBOY | 47:9e361da97763 | 10 | baidu::os::MeasureTimeList::getInstMeasureTime(time_current_get)->updateMeasureValue(key, argument);\ |
TMBOY | 47:9e361da97763 | 11 | }while(0) |
TMBOY | 47:9e361da97763 | 12 | |
TMBOY | 47:9e361da97763 | 13 | #define TIME_RESULT() do{\ |
TMBOY | 47:9e361da97763 | 14 | baidu::os::MeasureTimeList::getInstMeasureTime(time_current_get)->outputResult();\ |
TMBOY | 47:9e361da97763 | 15 | }while(0) |
TMBOY | 47:9e361da97763 | 16 | |
TMBOY | 47:9e361da97763 | 17 | #endif //~__BAIDU_TIME_CALCULATE_H__ |