\hypertarget{classTimeSpent}{
\section{TimeSpent Class Reference}
\label{classTimeSpent}\index{TimeSpent@{TimeSpent}}
}


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




{\ttfamily \#include $<$timespent.hh$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classTimeSpent_a45aa0ab4ea10ab9570657fa7bbe505c2}{
{\bfseries TimeSpent} (const char $\ast$function, const char $\ast$file, int line, int limit)}
\label{classTimeSpent_a45aa0ab4ea10ab9570657fa7bbe505c2}

\item 
bool \hyperlink{classTimeSpent_adfa624f20cf4789bd95842618be8a9b0}{overlimit} (\hyperlink{classTimeVal}{TimeVal} \&delta)
\item 
bool \hyperlink{classTimeSpent_acc3269c0833bb6dabeacc6349d504467}{overlimit} ()
\item 
\hypertarget{classTimeSpent_abbb5fc00fb81d9eed4e38e7c607252b2}{
void \hyperlink{classTimeSpent_abbb5fc00fb81d9eed4e38e7c607252b2}{check} (const char $\ast$function, const char $\ast$file, int line)}
\label{classTimeSpent_abbb5fc00fb81d9eed4e38e7c607252b2}

\begin{DoxyCompactList}\small\item\em Has \hyperlink{protocolthe-p}{the} alloted time been exceeded? If it has print a warning message. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classTimeSpent_a352178d71996511698200792bf6c7505}{
\hyperlink{classTimeVal}{TimeVal} {\bfseries \_\-start}}
\label{classTimeSpent_a352178d71996511698200792bf6c7505}

\item 
\hypertarget{classTimeSpent_a7fd99fe65b845cf6bb4df8fc9b9d16e5}{
const char $\ast$ {\bfseries \_\-function}}
\label{classTimeSpent_a7fd99fe65b845cf6bb4df8fc9b9d16e5}

\item 
\hypertarget{classTimeSpent_ada3c54fd7a111c9f49fec35126750f50}{
const char $\ast$ {\bfseries \_\-file}}
\label{classTimeSpent_ada3c54fd7a111c9f49fec35126750f50}

\item 
\hypertarget{classTimeSpent_a6f97adf981c5746921c77e7c221f97fb}{
int {\bfseries \_\-line}}
\label{classTimeSpent_a6f97adf981c5746921c77e7c221f97fb}

\item 
\hypertarget{classTimeSpent_a83d20f0bf1b3a198d72aa1d1212b07de}{
\hyperlink{classTimeVal}{TimeVal} {\bfseries \_\-limit}}
\label{classTimeSpent_a83d20f0bf1b3a198d72aa1d1212b07de}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
(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 \hyperlink{protocolthe-p}{the} macros below. Thus allowing file, function and line number information to be captured. 

\subsection{Member Function Documentation}
\hypertarget{classTimeSpent_adfa624f20cf4789bd95842618be8a9b0}{
\index{TimeSpent@{TimeSpent}!overlimit@{overlimit}}
\index{overlimit@{overlimit}!TimeSpent@{TimeSpent}}
\subsubsection[{overlimit}]{\setlength{\rightskip}{0pt plus 5cm}bool TimeSpent::overlimit (
\begin{DoxyParamCaption}
\item[{{\bf TimeVal} \&}]{delta}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTimeSpent_adfa624f20cf4789bd95842618be8a9b0}

\begin{DoxyParams}{Parameters}
{\em delta} & \hyperlink{protocolthe-p}{the} time that has passed. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if \hyperlink{protocolthe-p}{the} alloted time has been exceeded. 
\end{DoxyReturn}
\hypertarget{classTimeSpent_acc3269c0833bb6dabeacc6349d504467}{
\index{TimeSpent@{TimeSpent}!overlimit@{overlimit}}
\index{overlimit@{overlimit}!TimeSpent@{TimeSpent}}
\subsubsection[{overlimit}]{\setlength{\rightskip}{0pt plus 5cm}bool TimeSpent::overlimit (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTimeSpent_acc3269c0833bb6dabeacc6349d504467}
\begin{DoxyReturn}{Returns}
true if \hyperlink{protocolthe-p}{the} alloted time has been exceeded. 
\end{DoxyReturn}


The documentation for this class was generated from the following file:\begin{DoxyCompactItemize}
\item 
/home/greearb/git/xorp.ct.github/xorp/libxorp/timespent.hh\end{DoxyCompactItemize}
