Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
CTF::Function_timer Class Reference

times a specific symbol More...

#include <timer.h>

Public Member Functions

 Function_timer (char const *name_, double const start_time_, double const start_excl_time_)
 
void compute_totals (MPI_Comm comm)
 
bool operator< (Function_timer const &w) const
 
void print (FILE *output, MPI_Comm const comm, int const rank, int const np)
 

Data Fields

char name [MAX_NAME_LENGTH]
 
double start_time
 
double start_excl_time
 
double acc_time
 
double acc_excl_time
 
int calls
 
double total_time
 
double total_excl_time
 
int total_calls
 

Detailed Description

times a specific symbol

Definition at line 19 of file timer.h.

Constructor & Destructor Documentation

CTF::Function_timer::Function_timer ( char const *  name_,
double const  start_time_,
double const  start_excl_time_ 
)

Definition at line 28 of file int_timer.cxx.

References acc_excl_time, acc_time, ASSERT, calls, MAX_NAME_LENGTH, name, start_excl_time, and start_time.

Referenced by CTF::Timer::Timer().

Member Function Documentation

void CTF::Function_timer::compute_totals ( MPI_Comm  comm)

Definition at line 61 of file int_timer.cxx.

References acc_excl_time, acc_time, calls, total_calls, total_excl_time, and total_time.

bool CTF::Function_timer::operator< ( Function_timer const &  w) const

Definition at line 70 of file int_timer.cxx.

References total_time.

void CTF::Function_timer::print ( FILE *  output,
MPI_Comm const  comm,
int const  rank,
int const  np 
)

Field Documentation

double CTF::Function_timer::acc_excl_time

Definition at line 25 of file timer.h.

Referenced by compute_totals(), and Function_timer().

double CTF::Function_timer::acc_time

Definition at line 24 of file timer.h.

Referenced by compute_totals(), and Function_timer().

int CTF::Function_timer::calls

Definition at line 26 of file timer.h.

Referenced by compute_totals(), and Function_timer().

char CTF::Function_timer::name[MAX_NAME_LENGTH]
double CTF::Function_timer::start_excl_time

Definition at line 23 of file timer.h.

Referenced by Function_timer().

double CTF::Function_timer::start_time

Definition at line 22 of file timer.h.

Referenced by Function_timer().

int CTF::Function_timer::total_calls

Definition at line 30 of file timer.h.

Referenced by compute_totals(), and print().

double CTF::Function_timer::total_excl_time

Definition at line 29 of file timer.h.

Referenced by compute_totals(), and print().

double CTF::Function_timer::total_time

Definition at line 28 of file timer.h.

Referenced by compute_totals(), operator<(), and print().


The documentation for this class was generated from the following files: