Panda3D
Loading...
Searching...
No Matches
Public Member Functions | List of all members
PStatTimer Class Reference

A lightweight class that can be used to automatically start and stop a PStatCollector around a section of code. More...

#include "pStatTimer.h"

Inheritance diagram for PStatTimer:
PStatGPUTimer

Public Member Functions

 PStatTimer (PStatCollector &)
 
 PStatTimer (PStatCollector &, Thread *)
 

Detailed Description

A lightweight class that can be used to automatically start and stop a PStatCollector around a section of code.

It's intended to be used in the following way: create a local PStatTimer variable to start the Collector, and when the PStatTimer variable goes out of scope (for instance, at the end of the function), it will automatically stop the Collector.

Definition at line 30 of file pStatTimer.h.

Constructor & Destructor Documentation

◆ PStatTimer() [1/2]

PStatTimer::PStatTimer ( PStatCollector & )
inline

Definition at line 42 of file pStatTimer.h.

◆ PStatTimer() [2/2]

PStatTimer::PStatTimer ( PStatCollector & ,
Thread *  )
inline

Definition at line 43 of file pStatTimer.h.

◆ ~PStatTimer()

PStatTimer::~PStatTimer ( )
inline

Definition at line 44 of file pStatTimer.h.


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