class TimeSpent

(Debugging) Used to find code that has taken too long to execute. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

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:

deltathe 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


Generated by: pavlin on kobe.xorp.net on Wed Jan 7 19:10:36 2009, using kdoc 2.0a54+XORP.