\hypertarget{classSystemClock}{
\section{SystemClock Class Reference}
\label{classSystemClock}\index{SystemClock@{SystemClock}}
}


An implementation of \hyperlink{classClockBase}{ClockBase} that uses \hyperlink{protocolthe-p}{the} underlying system's 'get current system time' function as it's clock source.  




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

Inheritance diagram for SystemClock:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classSystemClock}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classSystemClock_ac13e10670a473b369af6f260c891e04b}{
void \hyperlink{classSystemClock_ac13e10670a473b369af6f260c891e04b}{advance\_\-time} ()}
\label{classSystemClock_ac13e10670a473b369af6f260c891e04b}

\begin{DoxyCompactList}\small\item\em Update internal concept of time. \item\end{DoxyCompactList}\item 
void \hyperlink{classSystemClock_a358e65f5445f20ca76915ff1a54a8e00}{current\_\-time} (\hyperlink{classTimeVal}{TimeVal} \&tv)
\begin{DoxyCompactList}\small\item\em Get time it was when \hyperlink{classSystemClock_ac13e10670a473b369af6f260c891e04b}{advance\_\-time()} was last called. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classSystemClock_ab0431ee9dfb90bc615de58f3b2e809a9}{
\hyperlink{classTimeVal}{TimeVal} $\ast$ {\bfseries \_\-tv}}
\label{classSystemClock_ab0431ee9dfb90bc615de58f3b2e809a9}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
An implementation of \hyperlink{classClockBase}{ClockBase} that uses \hyperlink{protocolthe-p}{the} underlying system's 'get current system time' function as it's clock source. 

\subsection{Member Function Documentation}
\hypertarget{classSystemClock_a358e65f5445f20ca76915ff1a54a8e00}{
\index{SystemClock@{SystemClock}!current\_\-time@{current\_\-time}}
\index{current\_\-time@{current\_\-time}!SystemClock@{SystemClock}}
\subsubsection[{current\_\-time}]{\setlength{\rightskip}{0pt plus 5cm}void SystemClock::current\_\-time (
\begin{DoxyParamCaption}
\item[{{\bf TimeVal} \&}]{tv}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{classSystemClock_a358e65f5445f20ca76915ff1a54a8e00}


Get time it was when \hyperlink{classSystemClock_ac13e10670a473b369af6f260c891e04b}{advance\_\-time()} was last called. 

Successive calls to current\_\-time return \hyperlink{protocolthe-p}{the} same value. Time only advances when \hyperlink{classSystemClock_ac13e10670a473b369af6f260c891e04b}{advance\_\-time()} is called.


\begin{DoxyParams}{Parameters}
{\em tv} & \hyperlink{classTimeVal}{TimeVal} to be filled in with current time. \\
\hline
\end{DoxyParams}


Implements \hyperlink{classClockBase_afda7a2d4f130a82bee9d1864529bba16}{ClockBase}.



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