Query: tau_global_timer
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
TAU_GLOBAL_TIMER(3) TAU Instrumentation API TAU_GLOBAL_TIMER(3)NAMETAU_GLOBAL_TIMER - Declares a global timerSYNOPSISC/C++: TAU_GLOBAL_TIMER(Profiler timer, char* or string& function_name, char* or string& type, TauGroup_t group);DESCRIPTIONAs TAU_PROFILE_TIMER is used within the scope of a block (typically a routine), TAU_GLOBAL_TIMER can be used across different routines.EXAMPLEC/C++ : /* f1.c */ TAU_GLOBAL_TIMER(globalTimer, "global timer", "", TAU_USER); /* f2.c */ TAU_GLOBAL_TIMER_EXTERNAL(globalTimer); int foo(void) { TAU_GLOBAL_TIMER_START(globalTimer); /* ... */ TAU_GLOBAL_TIMER_STOP(); }SEE ALSOTAU_GLOBAL_TIMER_EXTERNAL, TAU_GLOBAL_TIMER_START(3), TAU_GLOBAL_TIMER_STOP(3) 08/31/2005 TAU_GLOBAL_TIMER(3)