#include <dune/fem/misc/femtimer.hh>
|
static void | start () |
| push a new timer to the stack
|
|
static double | stop () |
| retrieve a timer from the stack
|
|
static unsigned int | addTo (const std::string &name, int nr=0) |
|
static void | removeFrom (unsigned int id) |
| remove a timer with given id
|
|
static void | removeAll () |
| remove all timers
|
|
static void | start (int id, int nr=0) |
|
static double | stop (int id, int nr=0, operation op=sum) |
|
static double | stop (int id, operation op) |
|
static void | reset () |
| reset all timers to zero
|
|
static void | reset (int id) |
| reset a given timer with all its subtimers
|
|
static void | reset (int id, int nr) |
| rest a given subtimer
|
|
static void | print (std::ostream &out, int id) |
| print the values of a given timer (plus subtimers) to a stream
|
|
static void | print (std::ostream &out, const std::string &msg="") |
| print the values of all timers to a stream
|
|
static void | printFile (const std::string &fileName, int step=1) |
|
static void | printFile (const TimeProviderBase &tp, const std::string &fileName, int step=1) |
|
◆ operation
◆ Timer()
◆ ~Timer()
◆ addTo()
static unsigned int Dune::Fem::Timer< true >::addTo |
( |
const std::string & |
name, |
|
|
int |
nr = 0 |
|
) |
| |
|
inlinestatic |
add a new timer with description
- Parameters
-
name | description for output |
nr | number of subtimers to store |
- Returns
- id used to identify this timer in all following calls
◆ print() [1/2]
static void Dune::Fem::Timer< true >::print |
( |
std::ostream & |
out, |
|
|
const std::string & |
msg = "" |
|
) |
| |
|
inlinestatic |
print the values of all timers to a stream
◆ print() [2/2]
print the values of a given timer (plus subtimers) to a stream
◆ printFile() [1/2]
static void Dune::Fem::Timer< true >::printFile |
( |
const std::string & |
fileName, |
|
|
int |
step = 1 |
|
) |
| |
|
inlinestatic |
print the values of all timers to a file if the file is open a new line is appended
- Parameters
-
fileName | name of the file |
step | only add a line to the file each step calls of this method |
◆ printFile() [2/2]
print the values of all timers to a file if the file is open a new line is appended information taken from a time provider is also added to the file
- Parameters
-
tp | the time provider |
fileName | name of the file |
step | only add a line to the file each step calls of this method |
◆ removeAll()
◆ removeFrom()
remove a timer with given id
◆ reset() [1/3]
◆ reset() [2/3]
reset a given timer with all its subtimers
◆ reset() [3/3]
◆ start() [1/2]
push a new timer to the stack
◆ start() [2/2]
start a given timer (or subtimer)
- Parameters
-
id | the id returned by the method addTo |
nr | the number of the subtimer |
◆ stop() [1/3]
retrieve a timer from the stack
◆ stop() [2/3]
stop a given timer (or subtimer)
- Parameters
-
id | the id of the timer as returned by the method addTo |
nr | the number of the subtimer |
op | the operation to perform (sum or max) |
- Returns
- the total (or max) time used by this timer since the last reset
◆ stop() [3/3]
stop a given timer (with subtimer 0)
- Parameters
-
id | the id of the timer as returned by the method addTo |
op | the operation to perform (sum or max) |
- Returns
- the total (or max) time used by this timer since the last reset
The documentation for this struct was generated from the following files: