PRISMS-PF Manual
Loading...
Searching...
No Matches
Timer::Scope Struct Reference

Timer scope guard. More...

#include <timer.h>

Public Member Functions

 Scope (const char *name)
 
 ~Scope ()
 
 Scope (const Scope &)=delete
 
Scopeoperator= (const Scope &)=delete
 
 Scope (Scope &&)=delete
 
Scopeoperator= (Scope &&)=delete
 

Private Attributes

const charname
 

Detailed Description

Timer scope guard.

This allows you to use the timer like the following

void f()
{
Timer::Scope outer("outer");
{
Timer::Scope inner("inner");
// Work goes here
} // Inner scope ends here
// Work goes here
} // Outer scope ends here
@ Value
Use value of the variable as a criterion for refinement.
Definition grid_refiner_criterion.h:31
Timer scope guard.
Definition timer.h:64

Constructor & Destructor Documentation

◆ Scope() [1/3]

Timer::Scope::Scope ( const char name)
inlineexplicit

◆ ~Scope()

Timer::Scope::~Scope ( )
inline

◆ Scope() [2/3]

Timer::Scope::Scope ( const Scope )
delete

◆ Scope() [3/3]

Timer::Scope::Scope ( Scope &&  )
delete

Member Function Documentation

◆ operator=() [1/2]

Scope & Timer::Scope::operator= ( const Scope )
delete

◆ operator=() [2/2]

Scope & Timer::Scope::operator= ( Scope &&  )
delete

Member Data Documentation

◆ name

const char* Timer::Scope::name
private

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