The MCFClass Project
|
These macros control how the classes OPTTimers and OPTrand are implemented; choose the appropriate value for your environment, or program a new version if no value suits you. More...
Macros | |
#define | OPT_TIMERS 5 |
The class OPTtimers is defined below to give an abstract interface to the different timing routines that are used in different platforms. | |
#define | OPT_RANDOM 1 |
The class OPTrand is defined below to give an abstract interface to the different random generators that are used in different platforms. | |
These macros control how the classes OPTTimers and OPTrand are implemented; choose the appropriate value for your environment, or program a new version if no value suits you.
Also, namespaces can be eliminated if they create problems.
#define OPT_TIMERS 5 |
The class OPTtimers is defined below to give an abstract interface to the different timing routines that are used in different platforms.
This is needed since time-related functions are one of the less standard parts of the C[++] library. The value of the OPT_TIMERS constant selects among the different timing routines:
Any unsupported value would simply make the class to report constant zero as the time.
#define OPT_RANDOM 1 |
The class OPTrand is defined below to give an abstract interface to the different random generators that are used in different platforms.
This is needed since random generators are one of the less standard parts of the C[++] library. The value of the OPT_RANDOM constant selects among the different timing routines:
Any unsupported value would simply make the functions to report constant zero, which is not nice but useful to quickly fix problems if you don't use random numbers at all.