ex

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

Committer:
TMBOY
Date:
Tue Jul 18 16:54:45 2017 +0800
Revision:
47:9e361da97763
?

Who changed what in which revision?

UserRevisionLine numberNew 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__