NTrace
GPU ray tracing framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FW::Timer Class Reference

#include <Timer.hpp>

Public Member Functions

 Timer (bool started=false)
 
 Timer (const Timer &other)
 
 ~Timer (void)
 
void start (void)
 
void unstart (void)
 
F32 getElapsed (void)
 
F32 end (void)
 
F32 getTotal (void) const
 
void clearTotal (void)
 
Timeroperator= (const Timer &other)
 

Static Public Member Functions

static void staticInit (void)
 
static S64 queryTicks (void)
 
static F32 ticksToSecs (S64 ticks)
 

Detailed Description

Definition at line 35 of file Timer.hpp.

Constructor & Destructor Documentation

FW::Timer::Timer ( bool  started = false)
inlineexplicit

Definition at line 38 of file Timer.hpp.

FW::Timer::Timer ( const Timer other)
inline

Definition at line 39 of file Timer.hpp.

FW::Timer::~Timer ( void  )
inline

Definition at line 40 of file Timer.hpp.

Member Function Documentation

void FW::Timer::clearTotal ( void  )
inline

Definition at line 48 of file Timer.hpp.

F32 FW::Timer::end ( void  )
inline

Definition at line 69 of file Timer.hpp.

F32 FW::Timer::getElapsed ( void  )
inline

Definition at line 44 of file Timer.hpp.

F32 FW::Timer::getTotal ( void  ) const
inline

Definition at line 47 of file Timer.hpp.

Timer & FW::Timer::operator= ( const Timer other)
inline

Definition at line 79 of file Timer.hpp.

S64 FW::Timer::queryTicks ( void  )
inlinestatic

Definition at line 88 of file Timer.hpp.

void FW::Timer::start ( void  )
inline

Definition at line 42 of file Timer.hpp.

void Timer::staticInit ( void  )
static

Definition at line 39 of file Timer.cpp.

F32 FW::Timer::ticksToSecs ( S64  ticks)
inlinestatic

Definition at line 99 of file Timer.hpp.

void FW::Timer::unstart ( void  )
inline

Definition at line 43 of file Timer.hpp.


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