Dali 3D User Interface Engine
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes
Dali::Internal::Adaptor::FrameTimeStamp Struct Reference

Simple structure to hold information about an event in time within Dali. More...

#include <frame-time-stamp.h>

Public Member Functions

 FrameTimeStamp ()
 Constructor. More...
 
 FrameTimeStamp (unsigned int frame, uint64_t microseconds, unsigned int bufferIndex=BUFFER_NOT_USED)
 Constructor. More...
 
 FrameTimeStamp (unsigned int bufferIndex)
 Constructor. More...
 

Static Public Member Functions

static unsigned int MicrosecondDiff (const FrameTimeStamp &start, const FrameTimeStamp &end)
 

Public Attributes

unsigned int frame
 Frame number ( not always available) More...
 
uint64_t microseconds
 Microsecond time stamp. More...
 
unsigned int bufferIndex
 The double buffered index used for performing an update / render. More...
 

Static Public Attributes

static const unsigned int BUFFER_NOT_USED = 2
 no index buffer was used More...
 

Detailed Description

Simple structure to hold information about an event in time within Dali.

For example when rendering started.

Definition at line 37 of file frame-time-stamp.h.

Constructor & Destructor Documentation

Dali::Internal::Adaptor::FrameTimeStamp::FrameTimeStamp ( )

Constructor.

Definition at line 30 of file frame-time-stamp.cpp.

Dali::Internal::Adaptor::FrameTimeStamp::FrameTimeStamp ( unsigned int  frame,
uint64_t  microseconds,
unsigned int  bufferIndex = BUFFER_NOT_USED 
)

Constructor.

Parameters
framethe frame number
microsecondsthe time from a monotonic clock
bufferIndexdouble buffered index used for performing an update / render

Definition at line 37 of file frame-time-stamp.cpp.

Dali::Internal::Adaptor::FrameTimeStamp::FrameTimeStamp ( unsigned int  bufferIndex)

Constructor.

Parameters
bufferIndexdouble buffered index used for performing an update / render

Definition at line 46 of file frame-time-stamp.cpp.

Member Function Documentation

unsigned int Dali::Internal::Adaptor::FrameTimeStamp::MicrosecondDiff ( const FrameTimeStamp start,
const FrameTimeStamp end 
)
static
Parameters
startstart time
endend time
Returns
difference in microseconds between two time stamps

Definition at line 53 of file frame-time-stamp.cpp.

References microseconds.

Referenced by Dali::Internal::Adaptor::FrameTimeStats::EndTime(), and Dali::Internal::Adaptor::PerformanceMarker::MicrosecondDiff().

Here is the caller graph for this function:

Member Data Documentation

const unsigned int Dali::Internal::Adaptor::FrameTimeStamp::BUFFER_NOT_USED = 2
static

no index buffer was used

Definition at line 40 of file frame-time-stamp.h.

unsigned int Dali::Internal::Adaptor::FrameTimeStamp::bufferIndex

The double buffered index used for performing an update / render.

Definition at line 70 of file frame-time-stamp.h.

unsigned int Dali::Internal::Adaptor::FrameTimeStamp::frame

Frame number ( not always available)

Definition at line 68 of file frame-time-stamp.h.

uint64_t Dali::Internal::Adaptor::FrameTimeStamp::microseconds

The documentation for this struct was generated from the following files:
Dali Docs Home
Read more about Dali