waLBerla 7.2
Loading...
Searching...
No Matches
Time.h File Reference

Detailed Description

Header file for time functions.

Author
Klaus Iglberger

Copyright (C) 2009 Klaus Iglberger Taken from "pe Physics Engine" with small changes

#include "core/DataTypes.h"
#include <ctime>
#include <sstream>
#include <string>
#include <chrono>

Namespaces

namespace  walberla
 Storage for detected contacts which can be used to perform actions for all contacts, e.g.
 
namespace  walberla::timing
 

Functions

double walberla::timing::getWcTime ()
 Returns the current wall clock time in seconds.
 
double walberla::timing::getCpuTime ()
 Returns the current CPU time in seconds.
 
std::string walberla::timing::timeToString (real_t time)
 Converts a timespan to a string.