\hypertarget{timing___p_c_8cpp}{
\section{D:/Basile/Visual\-Cpp\-Projects/hydro\-MEX3/hydro\-MEX3/timing/timing\_\-PC.cpp File Reference}
\label{timing___p_c_8cpp}\index{D:/Basile/VisualCppProjects/hydroMEX3/hydroMEX3/timing/timing_PC.cpp@{D:/Basile/VisualCppProjects/hydroMEX3/hydroMEX3/timing/timing\_\-PC.cpp}}
}
{\tt \#include $<$windows.h$>$}\par
{\tt \#include \char`\"{}timing.h\char`\"{}}\par


Include dependency graph for timing\_\-PC.cpp:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=247pt]{timing___p_c_8cpp__incl}
\end{center}
\end{figure}
\subsection*{Functions}
\begin{CompactItemize}
\item 
void \hyperlink{timing___p_c_8cpp_5ba73899fe15846cc99820005d978e24}{tic} ()
\begin{CompactList}\small\item\em Timinig function, similar to MATLAB's tic. \item\end{CompactList}\item 
float \hyperlink{timing___p_c_8cpp_83adf8e26e2c33497523a260bb6e42d8}{toc} ()
\begin{CompactList}\small\item\em Timing function, similar to MATLAB's toc. \item\end{CompactList}\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
int \hyperlink{timing___p_c_8cpp_ed7ea92f45bd273dde380a45ddced592}{offset}
\end{CompactItemize}


\subsection{Detailed Description}
\begin{Desc}
\item[Author:]\href{mailto:basile.graf@epfl.ch}{\tt basile.graf@epfl.ch}\end{Desc}
Timing functions for real time simulation. MS Windows implementation. 

Definition in file \hyperlink{timing___p_c_8cpp-source}{timing\_\-PC.cpp}.

\subsection{Function Documentation}
\hypertarget{timing___p_c_8cpp_5ba73899fe15846cc99820005d978e24}{
\index{timing_PC.cpp@{timing\_\-PC.cpp}!tic@{tic}}
\index{tic@{tic}!timing_PC.cpp@{timing\_\-PC.cpp}}
\subsubsection[tic]{\setlength{\rightskip}{0pt plus 5cm}void tic ()}}
\label{timing___p_c_8cpp_5ba73899fe15846cc99820005d978e24}


Timinig function, similar to MATLAB's tic. 

Initializes the timer (for realtime simulation) 

Definition at line 15 of file timing\_\-PC.cpp.

References offset.

Referenced by mex\-Function().\hypertarget{timing___p_c_8cpp_83adf8e26e2c33497523a260bb6e42d8}{
\index{timing_PC.cpp@{timing\_\-PC.cpp}!toc@{toc}}
\index{toc@{toc}!timing_PC.cpp@{timing\_\-PC.cpp}}
\subsubsection[toc]{\setlength{\rightskip}{0pt plus 5cm}float toc ()}}
\label{timing___p_c_8cpp_83adf8e26e2c33497523a260bb6e42d8}


Timing function, similar to MATLAB's toc. 

Returns the time elapsed in seconds since the last call of \hyperlink{timing_8h_5ba73899fe15846cc99820005d978e24}{tic()} \par
 Resolution is 1 ms \begin{Desc}
\item[Returns:]time in seconds \end{Desc}


Definition at line 20 of file timing\_\-PC.cpp.

References f(), and offset.

Referenced by mex\-Function().

\subsection{Variable Documentation}
\hypertarget{timing___p_c_8cpp_ed7ea92f45bd273dde380a45ddced592}{
\index{timing_PC.cpp@{timing\_\-PC.cpp}!offset@{offset}}
\index{offset@{offset}!timing_PC.cpp@{timing\_\-PC.cpp}}
\subsubsection[offset]{\setlength{\rightskip}{0pt plus 5cm}int \hyperlink{timing___p_c_8cpp_ed7ea92f45bd273dde380a45ddced592}{offset}}}
\label{timing___p_c_8cpp_ed7ea92f45bd273dde380a45ddced592}




Definition at line 13 of file timing\_\-PC.cpp.

Referenced by tic(), and toc().