GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
sc::RegionTimer(3) MPQC sc::RegionTimer(3)

sc::RegionTimer - The RegionTimer class is used to record the time spent in a section of code.

#include <regtime.h>

Inherits sc::DescribedClass.

Inherited by sc::ParallelRegionTimer.


RegionTimer (const char *topname='total', int cpu_time=0, int wall_time=1)
RegionTimer (const Ref< KeyVal > &)
void enter (const char *=0)
void change (const char *newname, const char *oldname=0)
void exit (const char *=0, bool do_not_throw=false)
void set_default (const char *)
void unset_default ()
void enter_default ()
void exit_default ()
virtual void print (std::ostream &=ExEnv::out0()) const
Print the object. void update_top () const
int nregion () const
void get_region_names (const char *names[]) const
void get_wall_times (double *) const
void get_cpu_times (double *) const
void get_flops (double *) const
void get_depth (int *) const
double get_wall_time () const
double get_cpu_time () const
double get_flops () const
void add_wall_time (const char *, double)
void add_cpu_time (const char *, double)
void add_flops (const char *, double)


static RegionTimer * default_regiontimer ()
static void set_default_regiontimer (const Ref< RegionTimer > &)


int wall_time_
int cpu_time_
int flops_
TimedRegion * top_
TimedRegion * current_
TimedRegion * default_

The RegionTimer class is used to record the time spent in a section of code.

During the run of a code, enter and exit members are called to begin and end timed sections. The print member is used to display the obtained times. Multiple enter calls for a region with the same name aggregate the timings. Nested regions are supported.

Print the object.

Reimplemented from sc::DescribedClass.

Reimplemented in sc::ParallelRegionTimer.

Generated automatically by Doxygen for MPQC from the source code.
Tue Jun 7 2022 Version 2.3.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.