Jpp 21.0.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JLANG::JClock::sentry Struct Reference

Auxiliary data structure for scoped timing. More...

#include <JClock.hh>

Public Member Functions

 sentry (JClock &clock)
 Constructor.
 
 ~sentry ()
 Destructor.
 

Private Attributes

JClockclock
 

Detailed Description

Auxiliary data structure for scoped timing.

Definition at line 65 of file JClock.hh.

Constructor & Destructor Documentation

◆ sentry()

JLANG::JClock::sentry::sentry ( JClock & clock)
inline

Constructor.

Parameters
clockclock

Definition at line 71 of file JClock.hh.

71 :
73 {
74 clock.start();
75 }
void start()
Start clock.
Definition JClock.hh:103

◆ ~sentry()

JLANG::JClock::sentry::~sentry ( )
inline

Destructor.

Definition at line 80 of file JClock.hh.

81 {
82 clock.stop();
83 }
void stop()
Stop clock.
Definition JClock.hh:112

Member Data Documentation

◆ clock

JClock& JLANG::JClock::sentry::clock
private

Definition at line 86 of file JClock.hh.


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