\hypertarget{class_test_frame_work_1_1_timer}{
\section{TestFrameWork::Timer Class Reference}
\label{class_test_frame_work_1_1_timer}\index{TestFrameWork::Timer@{TestFrameWork::Timer}}
}


\hyperlink{class_test_frame_work_1_1_timer}{Timer} class provides services to measure the time. It's based on high performance counter. Create a timer object to start the counter. Get the elapsed time using ElapsedTime.  


{\ttfamily \#include $<$Timer.h$>$}\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_test_frame_work_1_1_timer_ac4a02842420d94b325f6d484cfb524c5}{
\hyperlink{class_test_frame_work_1_1_timer_ac4a02842420d94b325f6d484cfb524c5}{Timer} (int samplesCount)}
\label{class_test_frame_work_1_1_timer_ac4a02842420d94b325f6d484cfb524c5}

\begin{DoxyCompactList}\small\item\em Constructor. It resets counter for first time. \item\end{DoxyCompactList}\item 
\hypertarget{class_test_frame_work_1_1_timer_af87243f09ef5b58b889fb4a7284b526d}{
\hyperlink{class_test_frame_work_1_1_timer_af87243f09ef5b58b889fb4a7284b526d}{$\sim$Timer} (void)}
\label{class_test_frame_work_1_1_timer_af87243f09ef5b58b889fb4a7284b526d}

\begin{DoxyCompactList}\small\item\em Destructor. \item\end{DoxyCompactList}\item 
float \hyperlink{class_test_frame_work_1_1_timer_a6f90a1b28fca9fc71c93dc767fb1a5ee}{ElapsedTime} (void)
\begin{DoxyCompactList}\small\item\em It gives the time elapsed since construction or between ElapsedTime calls. It resets counter. \item\end{DoxyCompactList}\item 
\hypertarget{class_test_frame_work_1_1_timer_a9d64b4f04437ac9e255533aec8c97126}{
float {\bfseries MeanElapsedTime} (void) const }
\label{class_test_frame_work_1_1_timer_a9d64b4f04437ac9e255533aec8c97126}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\hyperlink{class_test_frame_work_1_1_timer}{Timer} class provides services to measure the time. It's based on high performance counter. Create a timer object to start the counter. Get the elapsed time using ElapsedTime. \begin{Desc}
\item[\hyperlink{todo__todo000001}{Todo}]SetThreadAffinityMask() in order to avoid timing issues in many core architectures. Attach the thread to one core. \end{Desc}


\subsection{Member Function Documentation}
\hypertarget{class_test_frame_work_1_1_timer_a6f90a1b28fca9fc71c93dc767fb1a5ee}{
\index{TestFrameWork::Timer@{TestFrameWork::Timer}!ElapsedTime@{ElapsedTime}}
\index{ElapsedTime@{ElapsedTime}!TestFrameWork::Timer@{TestFrameWork::Timer}}
\subsubsection[{ElapsedTime}]{\setlength{\rightskip}{0pt plus 5cm}float Timer::ElapsedTime (void)}}
\label{class_test_frame_work_1_1_timer_a6f90a1b28fca9fc71c93dc767fb1a5ee}


It gives the time elapsed since construction or between ElapsedTime calls. It resets counter. \begin{DoxyReturn}{Returns}
elapsed time between timer resets in us. 
\end{DoxyReturn}


The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
src/TaskBasedFlockSim/Timer.h\item 
src/TaskBasedFlockSim/Timer.cpp\end{DoxyCompactItemize}
