xpu
xpu::scoped_timer Class Reference

RAII wrapper for timing functions. More...

Public Member Functions

 scoped_timer (std::string_view name, xpu::timings *t=nullptr)
 
 ~scoped_timer ()
 
 scoped_timer (const scoped_timer &)=delete
 
scoped_timeroperator= (const scoped_timer &)=delete
 
 scoped_timer (scoped_timer &&)=delete
 
scoped_timeroperator= (scoped_timer &&)=delete
 

Detailed Description

RAII wrapper for timing functions.

See also
xpu::push_timer, xpu::pop_timer, xpu::timings

Constructor & Destructor Documentation

◆ scoped_timer() [1/3]

xpu::scoped_timer::scoped_timer ( std::string_view  name,
xpu::timings t = nullptr 
)

Create a new timer.

Parameters
nameName of the timer.
tIf not null, the collected timings are stored here.

◆ ~scoped_timer()

xpu::scoped_timer::~scoped_timer ( )

◆ scoped_timer() [2/3]

xpu::scoped_timer::scoped_timer ( const scoped_timer )
delete

◆ scoped_timer() [3/3]

xpu::scoped_timer::scoped_timer ( scoped_timer &&  )
delete

Member Function Documentation

◆ operator=() [1/2]

scoped_timer& xpu::scoped_timer::operator= ( const scoped_timer )
delete

◆ operator=() [2/2]

scoped_timer& xpu::scoped_timer::operator= ( scoped_timer &&  )
delete

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