Recast Navigation
Navigation-mesh Toolset for Games
rcScopedTimer Class Reference

A helper to first start a timer and then stop it when this helper goes out of scope. More...

#include <Recast.h>

Public Member Functions

 rcScopedTimer (rcContext *ctx, const rcTimerLabel label)
 Constructs an instance and starts the timer. More...
 
 ~rcScopedTimer ()
 

Description

A helper to first start a timer and then stop it when this helper goes out of scope.

See also
rcContext

Constructor & Destructor Documentation

◆ rcScopedTimer()

rcScopedTimer::rcScopedTimer ( rcContext ctx,
const rcTimerLabel  label 
)
inline

Constructs an instance and starts the timer.

Parameters
[in]ctxThe context to use.
[in]labelThe category of the timer.

◆ ~rcScopedTimer()

rcScopedTimer::~rcScopedTimer ( )
inline

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