HawkTracer  0.8.0
duration_conversion.h
Go to the documentation of this file.
1 #ifndef HAWKTRACER_DURATION_CONVERSION_H
2 #define HAWKTRACER_DURATION_CONVERSION_H
3 
5 #define HT_DUR_NS(X) X
6 
7 #define HT_DUR_US(X) (1000u * X)
8 
9 #define HT_DUR_MS(X) (1000u * HT_DUR_US(X))
10 
11 #define HT_DUR_S(X) (1000u * HT_DUR_MS(X))
12 
13 #endif /* HAWKTRACER_DURATION_CONVERSION_H */