|
|
It is expected that this class will not be used directly but via the macros below. Thus allowing file, function and line number information to be captured.
TimeSpent (const char *function, const char *file, int line, int limit)
| TimeSpent |
bool overlimit (TimeVal& delta)
| overlimit |
Parameters:
delta | the time that has passed. |
Returns: true if the alloted time has been exceeded.
bool overlimit ()
| overlimit |
Returns: true if the alloted time has been exceeded.
void check (const char *function, const char *file, int line)
| check |
Has the alloted time been exceeded? If it has print a warning message.
~TimeSpent ()
| ~TimeSpent |