# TestFrameWork::Timer Class Reference

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. More...

`#include <Timer.h>`

List of all members.

## Public Member Functions
| Timer (int samplesCount)
| Constructor. It resets counter for first time.
| ~Timer (void)
| Destructor.
float | ElapsedTime (void)
| It gives the time elapsed since construction or between ElapsedTime calls. It resets counter.
float | MeanElapsedTime (void) const

## Detailed Description

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.

Todo:
  SetThreadAffinityMask() in order to avoid timing issues in many core architectures. Attach the thread to one core.

## Member Function Documentation

float Timer::ElapsedTime | ( | void |  | ) |

It gives the time elapsed since construction or between ElapsedTime calls. It resets counter.

Returns:
  elapsed time between timer resets in us.

The documentation for this class was generated from the following files:

- src/TaskBasedFlockSim/Timer.h
- src/TaskBasedFlockSim/Timer.cpp