dune-pdelab 2.7-git
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Functions
clock.cc File Reference
#include <cerrno>
#include <iomanip>
#include <ostream>
#include <sstream>
#include <string>
#include <sys/resource.h>
#include <sys/time.h>
#include <time.h>
#include <unistd.h>
#include <dune/common/exceptions.hh>
#include "clock.hh"

Classes

struct  Dune::PDELab::WallTimeClock
 
struct  Dune::PDELab::ProcessTimeClock
 

Namespaces

namespace  Dune
 For backward compatibility – Do not use this!
 
namespace  Dune::PDELab
 

Macros

#define _POSIX_C_SOURCE   199309L
 
#define _DEFAULT_SOURCE
 

Functions

std::ostream & Dune::PDELab::operator<< (std::ostream &s, const TimeSpec &t)
 insert a timespec into an output stream
 
TimeSpec Dune::PDELab::gettimeofdayWallTime ()
 
const TimeSpecDune::PDELab::gettimeofdayWallTimeResolution ()
 
TimeSpec Dune::PDELab::getWallTime ()
 get the wall time in seconds since the epoch
 
TimeSpec Dune::PDELab::getWallTimeResolution ()
 get resolution of the wall time in seconds
 
const std::string & Dune::PDELab::getWallTimeImp ()
 return a string describing which implementation is used to get the wall time
 
TimeSpec Dune::PDELab::getrusageProcessTime ()
 
const TimeSpecDune::PDELab::getrusageProcessTimeResolution ()
 
TimeSpec Dune::PDELab::getProcessTime ()
 get the process time in seconds used by the current process
 
TimeSpec Dune::PDELab::getProcessTimeResolution ()
 get resolution of the process time in seconds
 
const std::string & Dune::PDELab::getProcessTimeImp ()
 return a string describing which implementation is used to get the process time
 

Macro Definition Documentation

◆ _DEFAULT_SOURCE

#define _DEFAULT_SOURCE

◆ _POSIX_C_SOURCE

#define _POSIX_C_SOURCE   199309L