walberla::timing::StaticPolicy Struct Reference

Detailed Description

Timing policy for fake measurement with a static settable clock.

This clock is always stopped!

#include <StaticPolicy.h>

Static Public Member Functions

static void setTime (double time)
 Sets the clock to a certain point in time. More...
 
static void addTime (double time)
 Adds a certain amount of seconds to the clock. More...
 
Timing functions
static double getTimestamp ()
 Returns a timestamp of the current wall clock time in seconds. More...
 

Static Private Attributes

static double time_ = 0
 

Member Function Documentation

◆ addTime()

void walberla::timing::StaticPolicy::addTime ( double  time)
inlinestatic

Adds a certain amount of seconds to the clock.

Parameters
timeTime in seconds

◆ 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
timeTime in seconds

Member Data Documentation

◆ time_

double walberla::timing::StaticPolicy::time_ = 0
staticprivate

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