RixTimer Class Reference

RixTimer Class Referenceabstract

#include <RixInterfaces.h>

Inheritance diagram for RixTimer:
RixInterface

Public Member Functions

virtual RtUInt64 SampleTime ()=0
 Return a high resolution time sample.
 
virtual float ConvertIntervalToSeconds (RtUInt64 interval)=0
 Convert a high res time interval to seconds of time.
 
- Public Member Functions inherited from RixInterface
virtual int GetVersion () const
 

Additional Inherited Members

- Protected Member Functions inherited from RixInterface
 RixInterface (int version)
 Interfaces should not be constructed by users.
 
virtual ~RixInterface ()
 Interfaces should not be deleted by users.
 
- Protected Attributes inherited from RixInterface
int m_version
 Version number of this interface.
 

Detailed Description

Interface for sampling a high-resolution representation of the current time. Primarily useful for statistics gathering of timing information for plugins that operate within the renderer. In a multicore environment time sampling is a little challenging and can incur overhead. To support multithreaded operation (i.e. for RslPlugin shadeops, procprims, rifs), the standard idiom is to measure the time differential across a single code execution block. The value should be stored in a per-thread (lockless) context then summed across threads when a total is required. Note, these totals can exceed "user time".


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