rofi/include/timings.h

31 lines
661 B
C
Raw Normal View History

2015-11-14 12:49:42 +00:00
#ifndef ROFI_TIMINGS_H
#define ROFI_TIMINGS_H
#include <config.h>
2016-01-07 07:54:24 +00:00
/**
* @defgroup TIMINGS Timings
* @ingroup HELPERS
* @{
*/
2015-11-14 12:49:42 +00:00
#if TIMINGS
void rofi_timings_init ( void );
void rofi_timings_tick ( char const *str, int line, char const *msg );
void rofi_timings_quit ( void );
2015-11-24 21:53:40 +00:00
#define TIMINGS_START() rofi_timings_init ()
#define TICK() rofi_timings_tick ( __func__, __LINE__, "" )
#define TICK_N( a ) rofi_timings_tick ( __func__, __LINE__, a )
2015-11-24 21:53:40 +00:00
#define TIMINGS_STOP() rofi_timings_quit ()
2015-11-14 12:49:42 +00:00
#else
#define TIMINGS_START()
#define TIMINGS_STOP()
#define TICK()
#define TICK_N( a )
#endif // TIMINGS
2016-01-07 07:54:24 +00:00
/*@}*/
2015-11-14 12:49:42 +00:00
#endif // ROFI_TIMINGS_H