Blender  V3.3
Public Member Functions | List of all members
btClock Class Reference

The btClock is a portable basic clock that measures accurate time in seconds, use for profiling. More...

#include <btQuickprof.h>

Public Member Functions

 btClock ()
 The btClock is a portable basic clock that measures accurate time in seconds, use for profiling. More...
 
 btClock (const btClock &other)
 
btClockoperator= (const btClock &other)
 
 ~btClock ()
 
void reset ()
 Resets the initial reference time. More...
 
unsigned long long int getTimeMilliseconds ()
 
unsigned long long int getTimeMicroseconds ()
 
unsigned long long int getTimeNanoseconds ()
 
btScalar getTimeSeconds ()
 

Detailed Description

The btClock is a portable basic clock that measures accurate time in seconds, use for profiling.

Definition at line 22 of file btQuickprof.h.

Constructor & Destructor Documentation

◆ btClock() [1/2]

btClock::btClock ( )

The btClock is a portable basic clock that measures accurate time in seconds, use for profiling.

Definition at line 85 of file btQuickprof.cpp.

References m_data, and reset().

◆ btClock() [2/2]

btClock::btClock ( const btClock other)

Definition at line 99 of file btQuickprof.cpp.

References m_data.

◆ ~btClock()

btClock::~btClock ( )

Definition at line 94 of file btQuickprof.cpp.

References m_data.

Member Function Documentation

◆ getTimeMicroseconds()

unsigned long long int btClock::getTimeMicroseconds ( )

Returns the time in us since the last call to reset or since the Clock was created.

Definition at line 171 of file btQuickprof.cpp.

References double(), and m_data.

Referenced by getTimeSeconds().

◆ getTimeMilliseconds()

unsigned long long int btClock::getTimeMilliseconds ( )

Returns the time in ms since the last call to reset or since the btClock was created.

Definition at line 136 of file btQuickprof.cpp.

References double(), and m_data.

◆ getTimeNanoseconds()

unsigned long long int btClock::getTimeNanoseconds ( )

Definition at line 205 of file btQuickprof.cpp.

References btAssert, double(), err, and m_data.

◆ getTimeSeconds()

btScalar btClock::getTimeSeconds ( )

Returns the time in s since the last call to reset or since the Clock was created.

Definition at line 267 of file btQuickprof.cpp.

References getTimeMicroseconds().

◆ operator=()

btClock & btClock::operator= ( const btClock other)

Definition at line 105 of file btQuickprof.cpp.

References m_data.

◆ reset()

void btClock::reset ( )

Resets the initial reference time.

Definition at line 112 of file btQuickprof.cpp.

References m_data.

Referenced by btClock().


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