HawkTracer  0.10.0
duration_conversion.h File Reference

Go to the source code of this file.

Macros

#define HT_DUR_NS(X)   X
 Converts X value to nanoseconds. More...
 
#define HT_DUR_US(X)   (1000u * X)
 Converts X value to microseconds. More...
 
#define HT_DUR_MS(X)   (1000u * HT_DUR_US(X))
 Converts X value to milliseconds. More...
 
#define HT_DUR_S(X)   (1000u * HT_DUR_MS(X))
 Converts X value to seconds. More...
 

Macro Definition Documentation

◆ HT_DUR_MS

#define HT_DUR_MS (   X)    (1000u * HT_DUR_US(X))

Converts X value to milliseconds.

◆ HT_DUR_NS

#define HT_DUR_NS (   X)    X

Converts X value to nanoseconds.

◆ HT_DUR_S

#define HT_DUR_S (   X)    (1000u * HT_DUR_MS(X))

Converts X value to seconds.

◆ HT_DUR_US

#define HT_DUR_US (   X)    (1000u * X)

Converts X value to microseconds.