29 #ifndef _TIMERFACTORY_H_ 30 #define _TIMERFACTORY_H_ 75 SPX_MSG_ERROR(std::cerr <<
"wrong timer specified" << std::endl;)
84 if(ttype != timer->
type())
96 #endif // _TIMERFACTORY_H_ Memory allocation routines.
#define SPX_MSG_ERROR(x)
Prints out message x if the verbosity level is at least SPxOut::ERROR.
void spx_alloc(T &p, int n=1)
Allocate memory.
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