mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Data Structures | Namespaces | Macros
Timer.hpp File Reference
#include <mutable/util/fn.hpp>
#include <mutable/util/macro.hpp>
#include <algorithm>
#include <chrono>
#include <ctime>
#include <string>
#include <utility>
#include <vector>
Include dependency graph for Timer.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  m::Timer
 Collect timings of events. More...
 
struct  m::Timer::TimingProcess
 A proxy class to record a Measurement with a Timer. More...
 
struct  m::Timer::Measurement
 

Namespaces

namespace  m
 

‍mutable namespace


 

Macros

#define M_TIME_EXPR(EXPR, DESCR, TIMER)    [&]() { auto TP = (TIMER).create_timing((DESCR)); return (EXPR); }();
 
#define M_TIME_BLOCK(DESCR, TIMER, BLOCK)
 
#define M_TIME_THIS(DESCR, TIMER)    auto M_PASTE(__timer_, __COUNTER__) = (TIMER).create_timing((DESCR));
 

Macro Definition Documentation

◆ M_TIME_BLOCK

#define M_TIME_BLOCK (   DESCR,
  TIMER,
  BLOCK 
)
Value:
{\
auto TP = (TIMER).create_timing((DESCR)); \
}
#define BLOCK(...)
Definition: WasmMacro.hpp:15

Definition at line 179 of file Timer.hpp.

◆ M_TIME_EXPR

#define M_TIME_EXPR (   EXPR,
  DESCR,
  TIMER 
)     [&]() { auto TP = (TIMER).create_timing((DESCR)); return (EXPR); }();

Definition at line 177 of file Timer.hpp.

◆ M_TIME_THIS

#define M_TIME_THIS (   DESCR,
  TIMER 
)     auto M_PASTE(__timer_, __COUNTER__) = (TIMER).create_timing((DESCR));

Definition at line 183 of file Timer.hpp.