|
xorp
|
(Debugging) Used to find code that has taken too long to execute. More...
#include <timespent.hh>
Public Member Functions | |
| TimeSpent (const char *function, const char *file, int line, int limit) | |
| bool | overlimit (TimeVal &delta) |
| bool | overlimit () |
| void | check (const char *function, const char *file, int line) |
| Has the alloted time been exceeded? If it has print a warning message. | |
Private Attributes | |
| TimeVal | _start |
| const char * | _function |
| const char * | _file |
| int | _line |
| TimeVal | _limit |
(Debugging) Used to find code that has taken too long to execute.
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.
| bool TimeSpent::overlimit | ( | TimeVal & | delta | ) | [inline] |
| bool TimeSpent::overlimit | ( | ) | [inline] |