20 #ifndef _TIMERFACTORY_H_ 21 #define _TIMERFACTORY_H_ 66 MSG_ERROR(std::cerr <<
"wrong timer specified" << std::endl;)
75 if(ttype != timer->
type())
87 #endif // _TIMERFACTORY_H_ Memory allocation routines.
void spx_alloc(T &p, int n=1)
Allocate memory.
#define MSG_ERROR(x)
Prints out message x if the verbosity level is at least SPxOut::ERROR.
Class to create new timers and to switch types of exiting ones.
static Timer * switchTimer(Timer *timer, Timer::TYPE ttype)
static Timer * createTimer(Timer::TYPE ttype)
create timers and allocate memory for them
Debugging, floating point type and parameter definitions.
Everything should be within this namespace.
Wrapper for the system time query methods.
void spx_free(T &p)
Release memory.
virtual TYPE type()=0
return type of timer