Dali 3D User Interface Engine
Namespaces | Functions
Dali::Internal::Adaptor::TimeService Namespace Reference

Namespaces

namespace  anonymous_namespace{time-service.cpp}
 

Functions

void GetNanoseconds (uint64_t &timeInNanoseconds)
 Get the monotonic time since some unspecified starting point (usually the boot time). More...
 
void SleepUntil (uint64_t timeInNanoseconds)
 Sleeps until the monotonic time specified since some unspecified starting point (usually the boot time). More...
 

Function Documentation

void Dali::Internal::Adaptor::TimeService::GetNanoseconds ( uint64_t &  timeInNanoseconds)

Get the monotonic time since some unspecified starting point (usually the boot time).

Parameters
[out]timeInNanosecondsThe time in nanoseconds since the reference point.
Note
The maximum value timeInNanoseconds can hold is 0xFFFFFFFFFFFFFFFF which is 1.844674407e+19. Therefore, this can overflow after approximately 584 years.

Definition at line 41 of file time-service.cpp.

References Dali::Internal::Adaptor::TimeService::anonymous_namespace{time-service.cpp}::NANOSECONDS_PER_SECOND.

Referenced by Dali::Internal::Adaptor::PerformanceServer::AddMarker(), Dali::Internal::Adaptor::VSyncNotifier::Run(), Dali::Internal::Adaptor::FrameTime::SetLastSyncTime(), Dali::Internal::Adaptor::CombinedUpdateRenderController::UpdateRenderThread(), and Dali::Internal::Adaptor::SingleThreadController::UpdateTimeSinceLastRender().

Here is the caller graph for this function:

void Dali::Internal::Adaptor::TimeService::SleepUntil ( uint64_t  timeInNanoseconds)

Sleeps until the monotonic time specified since some unspecified starting point (usually the boot time).

If the time specified has already passed, then it returns immediately.

Parameters
[in]timeInNanosecondsThe time to sleep until
Note
The maximum value timeInNanoseconds can hold is 0xFFFFFFFFFFFFFFFF which is 1.844674407e+19. Therefore, this can overflow after approximately 584 years.

Definition at line 50 of file time-service.cpp.

References Dali::Internal::Adaptor::TimeService::anonymous_namespace{time-service.cpp}::NANOSECONDS_PER_SECOND.

Referenced by Dali::Internal::Adaptor::CombinedUpdateRenderController::UpdateRenderThread().

Here is the caller graph for this function:

Dali Docs Home
Read more about Dali