Timing policy for fake measurement with a static settable clock.
This clock is always stopped!
#include <StaticPolicy.h>
|
| static void | setTime (double time) |
| | Sets the clock to a certain point in time.
|
| |
| static void | addTime (double time) |
| | Adds a certain amount of seconds to the clock.
|
| |
|
| static double | getTimestamp () |
| | Returns a timestamp of the current wall clock time in seconds.
|
| |
◆ addTime()
| void walberla::timing::StaticPolicy::addTime |
( |
double | time | ) |
|
|
inlinestatic |
Adds a certain amount of seconds to the clock.
- Parameters
-
◆ getTimestamp()
| double walberla::timing::StaticPolicy::getTimestamp |
( |
| ) |
|
|
inlinestatic |
Returns a timestamp of the current wall clock time in seconds.
- Returns
- Wall clock timestamp in seconds.
◆ setTime()
| void walberla::timing::StaticPolicy::setTime |
( |
double | time | ) |
|
|
inlinestatic |
Sets the clock to a certain point in time.
- Parameters
-
◆ time_
| double walberla::timing::StaticPolicy::time_ = 0 |
|
staticprivate |
The documentation for this struct was generated from the following files:
- /builds/administration/walberla-website/walberla/src/core/timing/StaticPolicy.h
- /builds/administration/walberla-website/walberla/src/core/timing/StaticPolicy.cpp