feisty meow concerns codebase  2.140
test_timer_driver.cpp File Reference
Include dependency graph for test_timer_driver.cpp:

Go to the source code of this file.

Macros

#define LOG(s)   STAMPED_EMERGENCY_LOG(program_wide_logger::get(), s)
 
#define CREATE_TIMER(name, id, dur)
 
#define ZAP_TIMER(name)    program_wide_timer().zap_timer(&name)
 

Variables

const int DEFAULT_TEST_DURATION = 3 * SECOND_ms
 
const int MAX_THREADS = 120
 

Macro Definition Documentation

◆ CREATE_TIMER

#define CREATE_TIMER (   name,
  id,
  dur 
)
Value:
my_timer_handler name(*this, id); \
program_wide_timer().set_timer(dur, &name); \
LOG(astring("created timer ") + #name + " which hits every " + #dur + " ms")
Provides a dynamically resizable ASCII character string.
Definition: astring.h:35

Definition at line 149 of file test_timer_driver.cpp.

◆ LOG

#define LOG (   s)    STAMPED_EMERGENCY_LOG(program_wide_logger::get(), s)

Definition at line 48 of file test_timer_driver.cpp.

◆ ZAP_TIMER

#define ZAP_TIMER (   name)     program_wide_timer().zap_timer(&name)

Definition at line 154 of file test_timer_driver.cpp.

Variable Documentation

◆ DEFAULT_TEST_DURATION

const int DEFAULT_TEST_DURATION = 3 * SECOND_ms

Definition at line 50 of file test_timer_driver.cpp.

◆ MAX_THREADS

const int MAX_THREADS = 120

Definition at line 53 of file test_timer_driver.cpp.