SPH
Public Member Functions | List of all members
Context Class Reference

Accessible from benchmarks. More...

#include <Session.h>

Public Member Functions

 Context (const Target target, const std::string &name)
 
INLINE bool running ()
 Whether to keep running or exit. More...
 
INLINE uint64_t elapsed () const
 
INLINE Size iterationCnt () const
 
INLINE Stats getStats () const
 
template<typename... TArgs>
INLINE void log (TArgs &&... args)
 Writes given message into the logger. More...
 

Detailed Description

Accessible from benchmarks.

Definition at line 46 of file Session.h.

Constructor & Destructor Documentation

◆ Context()

Context::Context ( const Target  target,
const std::string &  name 
)
inline

Definition at line 64 of file Session.h.

Member Function Documentation

◆ elapsed()

INLINE uint64_t Context::elapsed ( ) const
inline

Definition at line 83 of file Session.h.

◆ getStats()

INLINE Stats Context::getStats ( ) const
inline

Definition at line 91 of file Session.h.

◆ iterationCnt()

INLINE Size Context::iterationCnt ( ) const
inline

Definition at line 87 of file Session.h.

◆ log()

template<typename... TArgs>
INLINE void Context::log ( TArgs &&...  args)
inline

Writes given message into the logger.

Definition at line 97 of file Session.h.

◆ running()

INLINE bool Context::running ( )
inline

Whether to keep running or exit.

Definition at line 70 of file Session.h.


The documentation for this class was generated from the following file: