dune-pdelab  2.5-dev
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

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

Macros

#define _POSIX_C_SOURCE   199309L
 
#define _BSD_SOURCE
 

Functions

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

Macro Definition Documentation

◆ _BSD_SOURCE

#define _BSD_SOURCE

◆ _POSIX_C_SOURCE

#define _POSIX_C_SOURCE   199309L