Go to the documentation of this file.
11 #include "YAKL_Toney.h"
17 inline void timer_init ( ) { get_yakl_instance().timer_init_func ( ); }
20 inline void timer_finalize( ) { get_yakl_instance().timer_finalize_func( ); }
23 inline void timer_start (
char const *lab) { get_yakl_instance().timer_start_func (lab); }
26 inline void timer_stop (
char const *lab) { get_yakl_instance().timer_stop_func (lab); }
31 inline void set_timer_init ( std::function<
void ()> func ) { get_yakl_instance().timer_init_func = func; }
34 inline void set_timer_finalize( std::function<
void ()> func ) { get_yakl_instance().timer_finalize_func = func; }
37 inline void set_timer_start ( std::function<
void (
char const *)> func ) { get_yakl_instance().timer_start_func = func; }
40 inline void set_timer_stop ( std::function<
void (
char const *)> func ) { get_yakl_instance().timer_stop_func = func; }
void timer_stop(char const *lab)
Stop a timer with the given string label. NOTE: Timers must be perfectly nested.
Definition: YAKL_timers.h:26
void set_timer_finalize(std::function< void()> func)
Override YAKL's default timer finalization routine.
Definition: YAKL_timers.h:34
void set_timer_init(std::function< void()> func)
Override YAKL's default timer initialization routine.
Definition: YAKL_timers.h:31
void timer_finalize()
Finalize the YAKL timers.
Definition: YAKL_timers.h:20
#define __YAKL_NAMESPACE_WRAPPER_END__
Definition: YAKL.h:20
void set_timer_stop(std::function< void(char const *)> func)
Override YAKL's default routine to stop an individual timer.
Definition: YAKL_timers.h:40
void set_timer_start(std::function< void(char const *)> func)
Override YAKL's default routine to start an individual timer.
Definition: YAKL_timers.h:37
#define __YAKL_NAMESPACE_WRAPPER_BEGIN__
Definition: YAKL.h:19
void timer_start(char const *lab)
Start a timer with the given string label. NOTE: Timers must be perfectly nested.
Definition: YAKL_timers.h:23
void timer_init()
Initialize the YAKL timers.
Definition: YAKL_timers.h:17