|
OpenZGY/C++ API and Internals (ALPHA)
Access seismic data stored in ZGY format.
|
Timer that prints its result when going out of scope. More...
#include <timer.h>
Public Member Functions | |
| PrintingTimer (const char *name, int level=1, bool startrunning=true) | |
| void | print () |
Public Member Functions inherited from InternalZGY::Timer | |
| Timer (bool enable=true, const char *name=0, int skip=0, bool startrunning=true) | |
| bool | getEnabled () const |
| double | getFrequency () const |
| double | getLast () const |
| double | getTotal () const |
| double | getOverhead () const |
| int | getCount () const |
| const char * | getName () const |
| int | getSkip () const |
| bool | getRunning () const |
| int | getVerbose () const |
| const char * | getValue (bool details=false, bool msonly=false) |
| void | setVerbose (int v) |
| void | start () |
| void | stop () |
| void | reset () |
Additional Inherited Members | |
Static Public Member Functions inherited from InternalZGY::Timer | |
| static void | getValue_s (char *buf, int len, const char *name, int count, double total, bool running, bool details, bool msonly) |
Timer that prints its result when going out of scope.
Convenience class that stops (if needed) the timer and logs the result when the instance goes out of scope.
TODO-Low it would be more elegant to pass the logger function as an argument and elide the dependency to the logger module.
1.8.17