\hypertarget{classTimeVal}{
\section{TimeVal Class Reference}
\label{classTimeVal}\index{TimeVal@{TimeVal}}
}


\hyperlink{classTimeVal}{TimeVal} class.  




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

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classTimeVal_a3639e61ffa8b03b798581b31f3b13896}{
\hyperlink{classTimeVal_a3639e61ffa8b03b798581b31f3b13896}{TimeVal} ()}
\label{classTimeVal_a3639e61ffa8b03b798581b31f3b13896}

\begin{DoxyCompactList}\small\item\em Default constructor. \item\end{DoxyCompactList}\item 
\hyperlink{classTimeVal_a36ec2d8a21a706f90198451f2dc57e03}{TimeVal} (int32\_\-t sec, int32\_\-t usec)
\begin{DoxyCompactList}\small\item\em Constructor for given seconds and microseconds. \item\end{DoxyCompactList}\item 
\hyperlink{classTimeVal_a06d2375e04524a6d662654e2e9c438b5}{TimeVal} (const timeval \&timeval)
\begin{DoxyCompactList}\small\item\em Constructor for given \char`\"{}struct timeval\char`\"{}. \item\end{DoxyCompactList}\item 
\hyperlink{classTimeVal_a835db11dc81659d1903b6afabef51ebe}{TimeVal} (const double \&d)
\begin{DoxyCompactList}\small\item\em Constructor for given double-\/float time value. \item\end{DoxyCompactList}\item 
int32\_\-t \hyperlink{classTimeVal_a2e7c3866e182a9c64ccd889734a8b59f}{sec} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} number of seconds. \item\end{DoxyCompactList}\item 
int32\_\-t \hyperlink{classTimeVal_a965644f3cac66806851cf79e15adf717}{usec} () const 
\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} number of microseconds. \item\end{DoxyCompactList}\item 
string \hyperlink{classTimeVal_a269f2232f392113a183a3a75ebd98066}{str} () const 
\item 
string \hyperlink{classTimeVal_a4280c616cc650da93e1081a43aef0737}{pretty\_\-print} () const 
\begin{DoxyCompactList}\small\item\em Pretty print \hyperlink{protocolthe-p}{the} time. \item\end{DoxyCompactList}\item 
size\_\-t \hyperlink{classTimeVal_a112079f5d6bec177e0e5b8bdde62357c}{copy\_\-in} (const timeval \&timeval)
\begin{DoxyCompactList}\small\item\em Copy \hyperlink{protocolthe-p}{the} time value from a timeval structure. \item\end{DoxyCompactList}\item 
size\_\-t \hyperlink{classTimeVal_a945aa6958be20531a2f55780d5b6f93b}{copy\_\-out} (timeval \&timeval) const 
\begin{DoxyCompactList}\small\item\em Copy \hyperlink{protocolthe-p}{the} time value to a timeval structure. \item\end{DoxyCompactList}\item 
int64\_\-t \hyperlink{classTimeVal_a9dd24e40425068eab1c6ff11adac8fd4}{to\_\-ms} () const 
\begin{DoxyCompactList}\small\item\em Return an int64\_\-t containing \hyperlink{protocolthe-p}{the} total number of milliseconds in \hyperlink{protocolthe-p}{the} underlying structure. \item\end{DoxyCompactList}\item 
\hypertarget{classTimeVal_a89370297bf5cd257d539f73e5e89bf20}{
void {\bfseries set\_\-ms} (int64\_\-t ms)}
\label{classTimeVal_a89370297bf5cd257d539f73e5e89bf20}

\item 
double \hyperlink{classTimeVal_a8bce925d2796903b78472b86a481f001}{get\_\-double} () const 
\begin{DoxyCompactList}\small\item\em Convert a \hyperlink{classTimeVal}{TimeVal} value to a double-\/float value. \item\end{DoxyCompactList}\item 
\hypertarget{classTimeVal_a85c0e8fd035ee1290240642378635d17}{
\hyperlink{classTimeVal}{TimeVal} \& \hyperlink{classTimeVal_a85c0e8fd035ee1290240642378635d17}{operator=} (const \hyperlink{classTimeVal}{TimeVal} \&other)}
\label{classTimeVal_a85c0e8fd035ee1290240642378635d17}

\begin{DoxyCompactList}\small\item\em Assignment Operator. \item\end{DoxyCompactList}\item 
bool \hyperlink{classTimeVal_aaff2dc128ed3cd55300181d70600f957}{operator==} (const \hyperlink{classTimeVal}{TimeVal} \&other) const 
\begin{DoxyCompactList}\small\item\em Equality Operator. \item\end{DoxyCompactList}\item 
bool \hyperlink{classTimeVal_ae5b3b1a62d2c66c1c76892ece7e73f61}{operator$<$} (const \hyperlink{classTimeVal}{TimeVal} \&other) const 
\begin{DoxyCompactList}\small\item\em Less-\/Than Operator. \item\end{DoxyCompactList}\item 
const \hyperlink{classTimeVal}{TimeVal} \& \hyperlink{classTimeVal_ad56cdc03bf0b261456893d023ab97b3c}{operator+=} (const \hyperlink{classTimeVal}{TimeVal} \&delta)
\begin{DoxyCompactList}\small\item\em Assign-\/Sum Operator. \item\end{DoxyCompactList}\item 
\hyperlink{classTimeVal}{TimeVal} \hyperlink{classTimeVal_aecc391886b55c1c306a86acdd12714c0}{operator+} (const \hyperlink{classTimeVal}{TimeVal} \&other) const 
\begin{DoxyCompactList}\small\item\em Addition Operator. \item\end{DoxyCompactList}\item 
const \hyperlink{classTimeVal}{TimeVal} \& \hyperlink{classTimeVal_ae16526164e4787cb4eb28887494d361f}{operator-\/=} (const \hyperlink{classTimeVal}{TimeVal} \&delta)
\begin{DoxyCompactList}\small\item\em Assign-\/Difference Operator. \item\end{DoxyCompactList}\item 
\hyperlink{classTimeVal}{TimeVal} \hyperlink{classTimeVal_a3c8cc8ef27798bb12bbab2d752b028b7}{operator-\/} (const \hyperlink{classTimeVal}{TimeVal} \&other) const 
\begin{DoxyCompactList}\small\item\em Substraction Operator. \item\end{DoxyCompactList}\item 
\hyperlink{classTimeVal}{TimeVal} \hyperlink{classTimeVal_adeb76553927e6576fa3de30416434acb}{operator$\ast$} (int n) const 
\begin{DoxyCompactList}\small\item\em Multiplication Operator for integer operand. \item\end{DoxyCompactList}\item 
\hyperlink{classTimeVal}{TimeVal} \hyperlink{classTimeVal_a9e6cfc7b6e9d0f77b813e56dd8292f32}{operator$\ast$} (unsigned int n) const 
\begin{DoxyCompactList}\small\item\em Multiplication Operator for unsigned integer operand. \item\end{DoxyCompactList}\item 
\hyperlink{classTimeVal}{TimeVal} \hyperlink{classTimeVal_a45a04f41356b9a7ff418347f76b5c746}{operator$\ast$} (const double \&d) const 
\begin{DoxyCompactList}\small\item\em Multiplication Operator for double float operand. \item\end{DoxyCompactList}\item 
\hyperlink{classTimeVal}{TimeVal} \hyperlink{classTimeVal_a4643260e5c47d0d7561ac4121b9748a9}{operator/} (int n) const 
\begin{DoxyCompactList}\small\item\em Division Operator for integer operand. \item\end{DoxyCompactList}\item 
\hyperlink{classTimeVal}{TimeVal} \hyperlink{classTimeVal_a06533483d1cecca97a19d6ae8fe6b7dd}{operator/} (unsigned int n) const 
\begin{DoxyCompactList}\small\item\em Division Operator for unsigned integer operand. \item\end{DoxyCompactList}\item 
\hyperlink{classTimeVal}{TimeVal} \hyperlink{classTimeVal_a5740649ae22d7a2e9bfc3a32a66386d4}{operator/} (const double \&d) const 
\begin{DoxyCompactList}\small\item\em Division Operator for double-\/float operand. \item\end{DoxyCompactList}\item 
bool \hyperlink{classTimeVal_a08d3c5ba87dba3159488b5f08096a880}{is\_\-zero} () const 
\begin{DoxyCompactList}\small\item\em Test if this time value is numerically zero. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classTimeVal_a1919de1f6ca952e2003c44502bd502b3}{
static \hyperlink{classTimeVal}{TimeVal} \hyperlink{classTimeVal_a1919de1f6ca952e2003c44502bd502b3}{ZERO} ()}
\label{classTimeVal_a1919de1f6ca952e2003c44502bd502b3}

\begin{DoxyCompactList}\small\item\em Get zero value. \item\end{DoxyCompactList}\item 
\hypertarget{classTimeVal_a9af051452245ec6e5d2bcba8c4ae4ac2}{
static \hyperlink{classTimeVal}{TimeVal} \hyperlink{classTimeVal_a9af051452245ec6e5d2bcba8c4ae4ac2}{MAXIMUM} ()}
\label{classTimeVal_a9af051452245ec6e5d2bcba8c4ae4ac2}

\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} maximum permitted value. \item\end{DoxyCompactList}\item 
\hypertarget{classTimeVal_a2a21c1464d63b80a3c512a79c33ec6b0}{
static \hyperlink{classTimeVal}{TimeVal} \hyperlink{classTimeVal_a2a21c1464d63b80a3c512a79c33ec6b0}{MINIMUM} ()}
\label{classTimeVal_a2a21c1464d63b80a3c512a79c33ec6b0}

\begin{DoxyCompactList}\small\item\em Get \hyperlink{protocolthe-p}{the} minimum permitted value. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classTimeVal_acaa88635e9138353bfb69df31a9e33e1}{
static const int32\_\-t {\bfseries ONE\_\-MILLION} = 1000000}
\label{classTimeVal_acaa88635e9138353bfb69df31a9e33e1}

\item 
\hypertarget{classTimeVal_acc8fb330ba499d23cbe76b63c37dd71e}{
static const int32\_\-t {\bfseries ONE\_\-THOUSAND} = 1000}
\label{classTimeVal_acc8fb330ba499d23cbe76b63c37dd71e}

\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classTimeVal_a66739c95736d39977cb80926fc2ddd78}{
{\bfseries TimeVal} (int i)}
\label{classTimeVal_a66739c95736d39977cb80926fc2ddd78}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classTimeVal_a16e8b7a25ba538355b6bfa7e0b6a9452}{
int32\_\-t {\bfseries \_\-sec}}
\label{classTimeVal_a16e8b7a25ba538355b6bfa7e0b6a9452}

\item 
\hypertarget{classTimeVal_abe04ea55f1708380618ca1610c6baab7}{
int32\_\-t {\bfseries \_\-usec}}
\label{classTimeVal_abe04ea55f1708380618ca1610c6baab7}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\hyperlink{classTimeVal}{TimeVal} class. \hyperlink{classTimeVal}{TimeVal} class is used for storing time value. Similar to \char`\"{}struct timeval\char`\"{}, \hyperlink{protocolthe-p}{the} time value is in seconds and microseconds. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classTimeVal_a36ec2d8a21a706f90198451f2dc57e03}{
\index{TimeVal@{TimeVal}!TimeVal@{TimeVal}}
\index{TimeVal@{TimeVal}!TimeVal@{TimeVal}}
\subsubsection[{TimeVal}]{\setlength{\rightskip}{0pt plus 5cm}TimeVal::TimeVal (
\begin{DoxyParamCaption}
\item[{int32\_\-t}]{sec, }
\item[{int32\_\-t}]{usec}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTimeVal_a36ec2d8a21a706f90198451f2dc57e03}


Constructor for given seconds and microseconds. 


\begin{DoxyParams}{Parameters}
{\em sec} & \hyperlink{protocolthe-p}{the} number of seconds. \\
\hline
{\em usec} & \hyperlink{protocolthe-p}{the} number of microseconds. \\
\hline
\end{DoxyParams}
\hypertarget{classTimeVal_a06d2375e04524a6d662654e2e9c438b5}{
\index{TimeVal@{TimeVal}!TimeVal@{TimeVal}}
\index{TimeVal@{TimeVal}!TimeVal@{TimeVal}}
\subsubsection[{TimeVal}]{\setlength{\rightskip}{0pt plus 5cm}TimeVal::TimeVal (
\begin{DoxyParamCaption}
\item[{const timeval \&}]{timeval}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, explicit\mbox{]}}}}
\label{classTimeVal_a06d2375e04524a6d662654e2e9c438b5}


Constructor for given \char`\"{}struct timeval\char`\"{}. 


\begin{DoxyParams}{Parameters}
{\em timeval} & \hyperlink{protocolthe-p}{the} \char`\"{}struct timeval\char`\"{} time value to initialize this object with. \\
\hline
\end{DoxyParams}
\hypertarget{classTimeVal_a835db11dc81659d1903b6afabef51ebe}{
\index{TimeVal@{TimeVal}!TimeVal@{TimeVal}}
\index{TimeVal@{TimeVal}!TimeVal@{TimeVal}}
\subsubsection[{TimeVal}]{\setlength{\rightskip}{0pt plus 5cm}TimeVal::TimeVal (
\begin{DoxyParamCaption}
\item[{const double \&}]{d}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline, explicit\mbox{]}}}}
\label{classTimeVal_a835db11dc81659d1903b6afabef51ebe}


Constructor for given double-\/float time value. 


\begin{DoxyParams}{Parameters}
{\em d} & \hyperlink{protocolthe-p}{the} double-\/float time value to initialize this object with. \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\hypertarget{classTimeVal_a112079f5d6bec177e0e5b8bdde62357c}{
\index{TimeVal@{TimeVal}!copy\_\-in@{copy\_\-in}}
\index{copy\_\-in@{copy\_\-in}!TimeVal@{TimeVal}}
\subsubsection[{copy\_\-in}]{\setlength{\rightskip}{0pt plus 5cm}size\_\-t TimeVal::copy\_\-in (
\begin{DoxyParamCaption}
\item[{const timeval \&}]{timeval}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTimeVal_a112079f5d6bec177e0e5b8bdde62357c}


Copy \hyperlink{protocolthe-p}{the} time value from a timeval structure. 


\begin{DoxyParams}{Parameters}
{\em timeval} & \hyperlink{protocolthe-p}{the} storage to copy \hyperlink{protocolthe-p}{the} time from. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} number of copied octets. 
\end{DoxyReturn}
\hypertarget{classTimeVal_a945aa6958be20531a2f55780d5b6f93b}{
\index{TimeVal@{TimeVal}!copy\_\-out@{copy\_\-out}}
\index{copy\_\-out@{copy\_\-out}!TimeVal@{TimeVal}}
\subsubsection[{copy\_\-out}]{\setlength{\rightskip}{0pt plus 5cm}size\_\-t TimeVal::copy\_\-out (
\begin{DoxyParamCaption}
\item[{timeval \&}]{timeval}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTimeVal_a945aa6958be20531a2f55780d5b6f93b}


Copy \hyperlink{protocolthe-p}{the} time value to a timeval structure. 


\begin{DoxyParams}{Parameters}
{\em timeval} & \hyperlink{protocolthe-p}{the} storage to copy \hyperlink{protocolthe-p}{the} time to. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} number of copied octets. 
\end{DoxyReturn}
\hypertarget{classTimeVal_a8bce925d2796903b78472b86a481f001}{
\index{TimeVal@{TimeVal}!get\_\-double@{get\_\-double}}
\index{get\_\-double@{get\_\-double}!TimeVal@{TimeVal}}
\subsubsection[{get\_\-double}]{\setlength{\rightskip}{0pt plus 5cm}double TimeVal::get\_\-double (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTimeVal_a8bce925d2796903b78472b86a481f001}


Convert a \hyperlink{classTimeVal}{TimeVal} value to a double-\/float value. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} double-\/float value of this \hyperlink{classTimeVal}{TimeVal} time. 
\end{DoxyReturn}
\hypertarget{classTimeVal_a08d3c5ba87dba3159488b5f08096a880}{
\index{TimeVal@{TimeVal}!is\_\-zero@{is\_\-zero}}
\index{is\_\-zero@{is\_\-zero}!TimeVal@{TimeVal}}
\subsubsection[{is\_\-zero}]{\setlength{\rightskip}{0pt plus 5cm}bool TimeVal::is\_\-zero (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTimeVal_a08d3c5ba87dba3159488b5f08096a880}


Test if this time value is numerically zero. 

\begin{DoxyReturn}{Returns}
true if \hyperlink{protocolthe-p}{the} address is numerically zero. 
\end{DoxyReturn}
\hypertarget{classTimeVal_adeb76553927e6576fa3de30416434acb}{
\index{TimeVal@{TimeVal}!operator$\ast$@{operator$\ast$}}
\index{operator$\ast$@{operator$\ast$}!TimeVal@{TimeVal}}
\subsubsection[{operator$\ast$}]{\setlength{\rightskip}{0pt plus 5cm}{\bf TimeVal} TimeVal::operator$\ast$ (
\begin{DoxyParamCaption}
\item[{int}]{n}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTimeVal_adeb76553927e6576fa3de30416434acb}


Multiplication Operator for integer operand. 


\begin{DoxyParams}{Parameters}
{\em n} & \hyperlink{protocolthe-p}{the} integer value used in multiplying \hyperlink{protocolthe-p}{the} value of this object with. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} \hyperlink{classTimeVal}{TimeVal} value of multiplying \hyperlink{protocolthe-p}{the} value of this object by n. 
\end{DoxyReturn}
\hypertarget{classTimeVal_a9e6cfc7b6e9d0f77b813e56dd8292f32}{
\index{TimeVal@{TimeVal}!operator$\ast$@{operator$\ast$}}
\index{operator$\ast$@{operator$\ast$}!TimeVal@{TimeVal}}
\subsubsection[{operator$\ast$}]{\setlength{\rightskip}{0pt plus 5cm}{\bf TimeVal} TimeVal::operator$\ast$ (
\begin{DoxyParamCaption}
\item[{unsigned int}]{n}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTimeVal_a9e6cfc7b6e9d0f77b813e56dd8292f32}


Multiplication Operator for unsigned integer operand. 


\begin{DoxyParams}{Parameters}
{\em n} & \hyperlink{protocolthe-p}{the} unsigned integer value used in multiplying \hyperlink{protocolthe-p}{the} value of this object with. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} \hyperlink{classTimeVal}{TimeVal} value of multiplying \hyperlink{protocolthe-p}{the} value of this object by n. 
\end{DoxyReturn}
\hypertarget{classTimeVal_a45a04f41356b9a7ff418347f76b5c746}{
\index{TimeVal@{TimeVal}!operator$\ast$@{operator$\ast$}}
\index{operator$\ast$@{operator$\ast$}!TimeVal@{TimeVal}}
\subsubsection[{operator$\ast$}]{\setlength{\rightskip}{0pt plus 5cm}{\bf TimeVal} TimeVal::operator$\ast$ (
\begin{DoxyParamCaption}
\item[{const double \&}]{d}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTimeVal_a45a04f41356b9a7ff418347f76b5c746}


Multiplication Operator for double float operand. 


\begin{DoxyParams}{Parameters}
{\em d} & \hyperlink{protocolthe-p}{the} double float value used in multiplying \hyperlink{protocolthe-p}{the} value of this object with. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} \hyperlink{classTimeVal}{TimeVal} value of multiplying \hyperlink{protocolthe-p}{the} value of this object by d. 
\end{DoxyReturn}
\hypertarget{classTimeVal_aecc391886b55c1c306a86acdd12714c0}{
\index{TimeVal@{TimeVal}!operator+@{operator+}}
\index{operator+@{operator+}!TimeVal@{TimeVal}}
\subsubsection[{operator+}]{\setlength{\rightskip}{0pt plus 5cm}{\bf TimeVal} TimeVal::operator+ (
\begin{DoxyParamCaption}
\item[{const {\bf TimeVal} \&}]{other}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTimeVal_aecc391886b55c1c306a86acdd12714c0}


Addition Operator. 


\begin{DoxyParams}{Parameters}
{\em other} & \hyperlink{protocolthe-p}{the} \hyperlink{classTimeVal}{TimeVal} value to add to \hyperlink{protocolthe-p}{the} value of this \hyperlink{classTimeVal}{TimeVal} object. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} \hyperlink{classTimeVal}{TimeVal} value after \hyperlink{protocolthe-p}{the} addition of other. 
\end{DoxyReturn}
\hypertarget{classTimeVal_ad56cdc03bf0b261456893d023ab97b3c}{
\index{TimeVal@{TimeVal}!operator+=@{operator+=}}
\index{operator+=@{operator+=}!TimeVal@{TimeVal}}
\subsubsection[{operator+=}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf TimeVal} \& TimeVal::operator+= (
\begin{DoxyParamCaption}
\item[{const {\bf TimeVal} \&}]{delta}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTimeVal_ad56cdc03bf0b261456893d023ab97b3c}


Assign-\/Sum Operator. 


\begin{DoxyParams}{Parameters}
{\em delta} & \hyperlink{protocolthe-p}{the} \hyperlink{classTimeVal}{TimeVal} value to add to this \hyperlink{classTimeVal}{TimeVal} object. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} \hyperlink{classTimeVal}{TimeVal} value after \hyperlink{protocolthe-p}{the} addition of delta. 
\end{DoxyReturn}
\hypertarget{classTimeVal_a3c8cc8ef27798bb12bbab2d752b028b7}{
\index{TimeVal@{TimeVal}!operator-\/@{operator-\/}}
\index{operator-\/@{operator-\/}!TimeVal@{TimeVal}}
\subsubsection[{operator-\/}]{\setlength{\rightskip}{0pt plus 5cm}{\bf TimeVal} TimeVal::operator-\/ (
\begin{DoxyParamCaption}
\item[{const {\bf TimeVal} \&}]{other}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTimeVal_a3c8cc8ef27798bb12bbab2d752b028b7}


Substraction Operator. 


\begin{DoxyParams}{Parameters}
{\em other} & \hyperlink{protocolthe-p}{the} \hyperlink{classTimeVal}{TimeVal} value to substract from \hyperlink{protocolthe-p}{the} value of this \hyperlink{classTimeVal}{TimeVal} object. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} \hyperlink{classTimeVal}{TimeVal} value after \hyperlink{protocolthe-p}{the} substraction of other. 
\end{DoxyReturn}
\hypertarget{classTimeVal_ae16526164e4787cb4eb28887494d361f}{
\index{TimeVal@{TimeVal}!operator-\/=@{operator-\/=}}
\index{operator-\/=@{operator-\/=}!TimeVal@{TimeVal}}
\subsubsection[{operator-\/=}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf TimeVal} \& TimeVal::operator-\/= (
\begin{DoxyParamCaption}
\item[{const {\bf TimeVal} \&}]{delta}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTimeVal_ae16526164e4787cb4eb28887494d361f}


Assign-\/Difference Operator. 


\begin{DoxyParams}{Parameters}
{\em delta} & \hyperlink{protocolthe-p}{the} \hyperlink{classTimeVal}{TimeVal} value to substract from this \hyperlink{classTimeVal}{TimeVal} object. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} \hyperlink{classTimeVal}{TimeVal} value after \hyperlink{protocolthe-p}{the} substraction of delta. 
\end{DoxyReturn}
\hypertarget{classTimeVal_a4643260e5c47d0d7561ac4121b9748a9}{
\index{TimeVal@{TimeVal}!operator/@{operator/}}
\index{operator/@{operator/}!TimeVal@{TimeVal}}
\subsubsection[{operator/}]{\setlength{\rightskip}{0pt plus 5cm}{\bf TimeVal} TimeVal::operator/ (
\begin{DoxyParamCaption}
\item[{int}]{n}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTimeVal_a4643260e5c47d0d7561ac4121b9748a9}


Division Operator for integer operand. 


\begin{DoxyParams}{Parameters}
{\em n} & \hyperlink{protocolthe-p}{the} integer value used in dividing \hyperlink{protocolthe-p}{the} value of this object with. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} \hyperlink{classTimeVal}{TimeVal} value of dividing \hyperlink{protocolthe-p}{the} value of this object by n. 
\end{DoxyReturn}
\hypertarget{classTimeVal_a06533483d1cecca97a19d6ae8fe6b7dd}{
\index{TimeVal@{TimeVal}!operator/@{operator/}}
\index{operator/@{operator/}!TimeVal@{TimeVal}}
\subsubsection[{operator/}]{\setlength{\rightskip}{0pt plus 5cm}{\bf TimeVal} TimeVal::operator/ (
\begin{DoxyParamCaption}
\item[{unsigned int}]{n}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTimeVal_a06533483d1cecca97a19d6ae8fe6b7dd}


Division Operator for unsigned integer operand. 


\begin{DoxyParams}{Parameters}
{\em n} & \hyperlink{protocolthe-p}{the} unsigned integer value used in dividing \hyperlink{protocolthe-p}{the} value of this object with. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} \hyperlink{classTimeVal}{TimeVal} value of dividing \hyperlink{protocolthe-p}{the} value of this object by n. 
\end{DoxyReturn}
\hypertarget{classTimeVal_a5740649ae22d7a2e9bfc3a32a66386d4}{
\index{TimeVal@{TimeVal}!operator/@{operator/}}
\index{operator/@{operator/}!TimeVal@{TimeVal}}
\subsubsection[{operator/}]{\setlength{\rightskip}{0pt plus 5cm}{\bf TimeVal} TimeVal::operator/ (
\begin{DoxyParamCaption}
\item[{const double \&}]{d}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTimeVal_a5740649ae22d7a2e9bfc3a32a66386d4}


Division Operator for double-\/float operand. 


\begin{DoxyParams}{Parameters}
{\em d} & \hyperlink{protocolthe-p}{the} double-\/float value used in dividing \hyperlink{protocolthe-p}{the} value of this object with. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} \hyperlink{classTimeVal}{TimeVal} value of dividing \hyperlink{protocolthe-p}{the} value of this object by d. 
\end{DoxyReturn}
\hypertarget{classTimeVal_ae5b3b1a62d2c66c1c76892ece7e73f61}{
\index{TimeVal@{TimeVal}!operator$<$@{operator$<$}}
\index{operator$<$@{operator$<$}!TimeVal@{TimeVal}}
\subsubsection[{operator$<$}]{\setlength{\rightskip}{0pt plus 5cm}bool TimeVal::operator$<$ (
\begin{DoxyParamCaption}
\item[{const {\bf TimeVal} \&}]{other}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTimeVal_ae5b3b1a62d2c66c1c76892ece7e73f61}


Less-\/Than Operator. 


\begin{DoxyParams}{Parameters}
{\em other} & \hyperlink{protocolthe-p}{the} right-\/hand operand to compare against. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if \hyperlink{protocolthe-p}{the} left-\/hand operand is numerically smaller than \hyperlink{protocolthe-p}{the} right-\/hand operand. 
\end{DoxyReturn}
\hypertarget{classTimeVal_aaff2dc128ed3cd55300181d70600f957}{
\index{TimeVal@{TimeVal}!operator==@{operator==}}
\index{operator==@{operator==}!TimeVal@{TimeVal}}
\subsubsection[{operator==}]{\setlength{\rightskip}{0pt plus 5cm}bool TimeVal::operator== (
\begin{DoxyParamCaption}
\item[{const {\bf TimeVal} \&}]{other}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTimeVal_aaff2dc128ed3cd55300181d70600f957}


Equality Operator. 


\begin{DoxyParams}{Parameters}
{\em other} & \hyperlink{protocolthe-p}{the} right-\/hand operand to compare against. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true if \hyperlink{protocolthe-p}{the} left-\/hand operand is numerically same as \hyperlink{protocolthe-p}{the} right-\/hand operand. 
\end{DoxyReturn}
\hypertarget{classTimeVal_a4280c616cc650da93e1081a43aef0737}{
\index{TimeVal@{TimeVal}!pretty\_\-print@{pretty\_\-print}}
\index{pretty\_\-print@{pretty\_\-print}!TimeVal@{TimeVal}}
\subsubsection[{pretty\_\-print}]{\setlength{\rightskip}{0pt plus 5cm}string TimeVal::pretty\_\-print (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}
\label{classTimeVal_a4280c616cc650da93e1081a43aef0737}


Pretty print \hyperlink{protocolthe-p}{the} time. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} time as formated by ctime(3) without \hyperlink{protocolthe-p}{the} newline. 
\end{DoxyReturn}
\hypertarget{classTimeVal_a2e7c3866e182a9c64ccd889734a8b59f}{
\index{TimeVal@{TimeVal}!sec@{sec}}
\index{sec@{sec}!TimeVal@{TimeVal}}
\subsubsection[{sec}]{\setlength{\rightskip}{0pt plus 5cm}int32\_\-t TimeVal::sec (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTimeVal_a2e7c3866e182a9c64ccd889734a8b59f}


Get \hyperlink{protocolthe-p}{the} number of seconds. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} number of seconds. 
\end{DoxyReturn}
\hypertarget{classTimeVal_a269f2232f392113a183a3a75ebd98066}{
\index{TimeVal@{TimeVal}!str@{str}}
\index{str@{str}!TimeVal@{TimeVal}}
\subsubsection[{str}]{\setlength{\rightskip}{0pt plus 5cm}string TimeVal::str (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}
\label{classTimeVal_a269f2232f392113a183a3a75ebd98066}
\begin{DoxyReturn}{Returns}
seconds and microseconds as a string. 
\end{DoxyReturn}
\hypertarget{classTimeVal_a9dd24e40425068eab1c6ff11adac8fd4}{
\index{TimeVal@{TimeVal}!to\_\-ms@{to\_\-ms}}
\index{to\_\-ms@{to\_\-ms}!TimeVal@{TimeVal}}
\subsubsection[{to\_\-ms}]{\setlength{\rightskip}{0pt plus 5cm}int64\_\-t TimeVal::to\_\-ms (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const}}
\label{classTimeVal_a9dd24e40425068eab1c6ff11adac8fd4}


Return an int64\_\-t containing \hyperlink{protocolthe-p}{the} total number of milliseconds in \hyperlink{protocolthe-p}{the} underlying structure. 

This is intended for convenience when working with Win32 APIs. XXX: This may overflow if \_\-sec is too big.

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} number of milliseconds in total. 
\end{DoxyReturn}
\hypertarget{classTimeVal_a965644f3cac66806851cf79e15adf717}{
\index{TimeVal@{TimeVal}!usec@{usec}}
\index{usec@{usec}!TimeVal@{TimeVal}}
\subsubsection[{usec}]{\setlength{\rightskip}{0pt plus 5cm}int32\_\-t TimeVal::usec (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{classTimeVal_a965644f3cac66806851cf79e15adf717}


Get \hyperlink{protocolthe-p}{the} number of microseconds. 

\begin{DoxyReturn}{Returns}
\hyperlink{protocolthe-p}{the} number of microseconds. 
\end{DoxyReturn}


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