Jpp 21.0.0
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

JClock & clock
 

Detailed Description

Auxiliary data structure for scoped timing.

Definition at line 53 of file JClock.hh.

Constructor & Destructor Documentation

◆ sentry()

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

Constructor.

Parameters
clockclock

Definition at line 59 of file JClock.hh.

59 :
61 {
62 clock.start();
63 }
void start()
Start clock.
Definition JClock.hh:91

◆ ~sentry()

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

Destructor.

Definition at line 68 of file JClock.hh.

69 {
70 clock.stop();
71 }
void stop()
Stop clock.
Definition JClock.hh:100

Member Data Documentation

◆ clock

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

Definition at line 74 of file JClock.hh.


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