.\" ** You probably do not want to edit this file directly ** .\" It was generated using the DocBook XSL Stylesheets (version 1.69.1). .\" Instead of manually editing it, you probably should edit the DocBook XML .\" source for it and then use the DocBook XSL Stylesheets to regenerate it. .TH "TAU_GLOBAL_TIMER" "3" "08/31/2005" "" "TAU Instrumentation API" .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .SH "NAME" TAU_GLOBAL_TIMER \- Declares a global timer .SH "SYNOPSIS" .PP \fBC/C++:\fR .HP 17 \fB\fBTAU_GLOBAL_TIMER\fR\fR\fB(\fR\fBProfiler\ \fR\fB\fItimer\fR\fR\fB, \fR\fBchar*\ or\ string&\ \fR\fB\fIfunction_name\fR\fR\fB, \fR\fBchar*\ or\ string&\ \fR\fB\fItype\fR\fR\fB, \fR\fBTauGroup_t\ \fR\fB\fIgroup\fR\fR\fB);\fR .SH "DESCRIPTION" .PP As TAU_PROFILE_TIMER is used within the scope of a block (typically a routine), TAU_GLOBAL_TIMER can be used across different routines. .SH "EXAMPLE" .PP \fBC/C++ :\fR .sp .nf /* 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(); } .fi .SH "SEE ALSO" .PP TAU_GLOBAL_TIMER_EXTERNAL, TAU_GLOBAL_TIMER_START(3), TAU_GLOBAL_TIMER_STOP(3)