![]() |
NeoPZ
|
The timer class. Utility. More...
#include <TPZTimer.h>
Public Member Functions | |
| TPZTimer () | |
| TPZTimer (std::string pn) | |
| Default constructor. More... | |
| ~TPZTimer () | |
| Default Destructor. More... | |
| std::string & | processName () |
| Gets the process name (for reporting purposes). More... | |
| const std::string & | processName () const |
| Gets the process name (for reporting purposes). More... | |
| void | start () |
| Turns the timer on. More... | |
| void | stop () |
| Turns the timer off, and computes the elapsed time. More... | |
| void | reset () |
| Zeroes the timer. More... | |
| double | seconds () const |
| Returns the elapsed time in seconds. More... | |
Private Attributes | |
| PZResourceUsage | resources |
| Information on the resources used. More... | |
| double | AccumSec |
| Total accumulated time in seconds. More... | |
| std::string | ProcessName |
| Name of the process being timed. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &Out, const TPZTimer &t) |
| Prints the time nicely formated. More... | |
The timer class. Utility.
Definition at line 46 of file TPZTimer.h.
| void TPZTimer::start | ( | ) |
Turns the timer on.
Definition at line 28 of file TPZTimer.cpp.
References resources, and PZResourceUsage::start.
Referenced by TPZRenumbering::ConvertGraph(), TPZSpStructMatrix::CreateAssemble(), TPZSymetricSpStructMatrix::CreateAssemble(), TPZStructMatrixCS::ThreadData::NextElement(), TPZStructMatrixGCTP::Serial_Assemble(), TPZStructMatrixGC::Serial_Assemble(), TPZStructMatrixCS::Serial_Assemble(), TPZStructMatrixOT::Serial_Assemble(), TPZStructMatrixOR::Serial_Assemble(), TPZPairStructMatrix::SerialAssemble(), TPZStructMatrixGC::ThreadData::ThreadWork(), TPZStructMatrixCS::ThreadData::ThreadWork(), TPZStructMatrixOT::ThreadData::ThreadWork(), TPZStructMatrixOT::ThreadData::ThreadWorkResidual(), and TPZStructMatrixTBBFlow::Write().
| void TPZTimer::stop | ( | ) |
Turns the timer off, and computes the elapsed time.
Definition at line 36 of file TPZTimer.cpp.
References AccumSec, PZResourceUsage::elapsed, resources, and PZResourceUsage::start.
Referenced by TPZRenumbering::ConvertGraph(), TPZSpStructMatrix::CreateAssemble(), TPZSymetricSpStructMatrix::CreateAssemble(), TPZStructMatrixGCTP::Serial_Assemble(), TPZStructMatrixGC::Serial_Assemble(), TPZStructMatrixCS::Serial_Assemble(), TPZStructMatrixOT::Serial_Assemble(), TPZStructMatrixOR::Serial_Assemble(), and TPZPairStructMatrix::SerialAssemble().
|
friend |
Prints the time nicely formated.
Definition at line 48 of file TPZTimer.cpp.
|
private |
Total accumulated time in seconds.
Definition at line 88 of file TPZTimer.h.
Referenced by operator<<(), reset(), seconds(), and stop().
|
private |
Name of the process being timed.
Definition at line 91 of file TPZTimer.h.
Referenced by processName().
|
private |
Information on the resources used.
Definition at line 85 of file TPZTimer.h.
1.8.13