OMSimulatorLib The OMSimulator project is a FMI-based co-simulation environment.

Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Clock Class Reference

`#include <Clock.h>`

## Public Member Functions
| Clock ()
| ~Clock ()
void | tic ()
void | toc ()
void | reset ()
double & | getElapsedCPUTime ()
double & | getElapsedWallTime ()
bool & | isActive ()

## Private Attributes
bool | active
std::clock_t | startCPUTime
std::chrono::system_clock::time_point | startWallTime
double | elapsedCPUTime
double | elapsedWallTime

## Constructor & Destructor Documentation

## ◆ Clock()

Clock::Clock | ( |  | ) |

Here is the call graph for this function:

## ◆ ~Clock()

Clock::~Clock | ( |  | ) |

## Member Function Documentation

## ◆ getElapsedCPUTime()

double & Clock::getElapsedCPUTime | ( |  | ) |

Here is the call graph for this function:
Here is the caller graph for this function:

## ◆ getElapsedWallTime()

double & Clock::getElapsedWallTime | ( |  | ) |

Here is the call graph for this function:
Here is the caller graph for this function:

## ◆ isActive()

bool & Clock::isActive | ( |  | ) |
| inline

## ◆ reset()

void Clock::reset | ( |  | ) |

Here is the caller graph for this function:

## ◆ tic()

void Clock::tic | ( |  | ) |

Here is the caller graph for this function:

## ◆ toc()

void Clock::toc | ( |  | ) |

Here is the caller graph for this function:

## Member Data Documentation

## ◆ active

bool Clock::active
| private

## ◆ elapsedCPUTime

double Clock::elapsedCPUTime
| private

## ◆ elapsedWallTime

double Clock::elapsedWallTime
| private

## ◆ startCPUTime

std::clock_t Clock::startCPUTime
| private

## ◆ startWallTime

std::chrono::system_clock::time_point Clock::startWallTime
| private

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

- /var/lib/jenkins/ws/OMSimulator_PR-1619/src/OMSimulatorLib/Clock.h
- /var/lib/jenkins/ws/OMSimulator_PR-1619/src/OMSimulatorLib/Clock.cpp