\hypertarget{a01251}{\section{A\+C\+G\+:\+:Stop\+Watch Class Reference}
\label{a01251}\index{A\+C\+G\+::\+Stop\+Watch@{A\+C\+G\+::\+Stop\+Watch}}
}


{\ttfamily \#include $<$A\+C\+G/\+Utils/\+Stop\+Watch.\+hh$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01251_a7663733cd94e7296355029d86e49dd5f}{\hyperlink{a01251_a7663733cd94e7296355029d86e49dd5f}{Stop\+Watch} ()}\label{a01251_a7663733cd94e7296355029d86e49dd5f}

\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\hypertarget{a01251_aec00dcb2cad195ddc073a8c65bf393ee}{\hyperlink{a01251_aec00dcb2cad195ddc073a8c65bf393ee}{$\sim$\+Stop\+Watch} ()}\label{a01251_aec00dcb2cad195ddc073a8c65bf393ee}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\hypertarget{a01251_a4037589f2d64f4c80e5853f5777eb715}{void \hyperlink{a01251_a4037589f2d64f4c80e5853f5777eb715}{start} ()}\label{a01251_a4037589f2d64f4c80e5853f5777eb715}

\begin{DoxyCompactList}\small\item\em Start time measurement. \end{DoxyCompactList}\item 
\hypertarget{a01251_a8e53add18a083480e298a2f615566638}{double \hyperlink{a01251_a8e53add18a083480e298a2f615566638}{restart} ()}\label{a01251_a8e53add18a083480e298a2f615566638}

\begin{DoxyCompactList}\small\item\em Restart, return time elapsed until now. \end{DoxyCompactList}\item 
\hypertarget{a01251_a80ada521aa73c60d2443b7ebc58aec01}{double \hyperlink{a01251_a80ada521aa73c60d2443b7ebc58aec01}{stop} ()}\label{a01251_a80ada521aa73c60d2443b7ebc58aec01}

\begin{DoxyCompactList}\small\item\em Stop time measurement, return time. \end{DoxyCompactList}\item 
\hypertarget{a01251_a5bbcc8e7eeba22071415db335bc2c56d}{double \hyperlink{a01251_a5bbcc8e7eeba22071415db335bc2c56d}{elapsed} () const }\label{a01251_a5bbcc8e7eeba22071415db335bc2c56d}

\begin{DoxyCompactList}\small\item\em Get the total time in milli-\/seconds (watch has to be stopped). \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01251_a64177c096ff4ccb8dbc60a8894dca0b8}{timeval {\bfseries current\+\_\+time} () const }\label{a01251_a64177c096ff4ccb8dbc60a8894dca0b8}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01251_af2b17c2be385e4c658be7aa63430c76d}{timeval {\bfseries starttime\+\_\+}}\label{a01251_af2b17c2be385e4c658be7aa63430c76d}

\item 
\hypertarget{a01251_ab954a946a03871be55c1230714031b36}{timeval {\bfseries endtime\+\_\+}}\label{a01251_ab954a946a03871be55c1230714031b36}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
This class can be used for measuring time, providing milli-\/second precision by using the gettimeofday() funtion. It is e.\+g. used in the class \hyperlink{a01307}{A\+C\+G\+::\+Timed\+Tracing}. 

Definition at line 96 of file Stop\+Watch.\+hh.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
A\+C\+G/\+Utils/Stop\+Watch.\+hh\end{DoxyCompactItemize}
