- Main Page
- Namespaces
- Data Structures
- Files

- File List
- Globals

# D:/Basile/VisualCppProjects/hydroMEX3/hydroMEX3/timing/timing_PC.cpp File Reference

`#include <windows.h>`
`#include "timing.h"`

Include dependency graph for timing_PC.cpp:

Go to the source code of this file.

## Functions
void | tic ()
| Timinig function, similar to MATLAB's tic.
float | toc ()
| Timing function, similar to MATLAB's toc.
## Variables
int | offset

## Detailed Description

Author:
  basile.graf@epfl.ch

Timing functions for real time simulation. MS Windows implementation.

Definition in file timing_PC.cpp.

## Function Documentation

void tic | ( |  | ) |

| 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 mexFunction().

float toc | ( |  | ) |

| Timing function, similar to MATLAB's toc. Returns the time elapsed in seconds since the last call of tic() Resolution is 1 ms Returns: time in seconds Definition at line 20 of file timing_PC.cpp. References f(), and offset. Referenced by mexFunction().

## Variable Documentation

int offset

| Definition at line 13 of file timing_PC.cpp. Referenced by tic(), and toc().