Merge "Enable -Wold-style-cast in Adaptor" into devel/master
[platform/core/uifw/dali-adaptor.git] / adaptors / base / time-service.h
index ed2ca8a..39d0c6d 100644 (file)
@@ -35,11 +35,22 @@ namespace TimeService
 /**
  * @brief Get the monotonic time since some unspecified starting point (usually the boot time).
  *
- * @param[out]  nanoseconds  The time in nanoseconds since the reference point.
+ * @param[out]  timeInNanoseconds  The time in nanoseconds since the reference point.
  *
- * @note The maximum value this can hold is 0xFFFFFFFFFFFFFFFF which is 1.844674407e+19. Therefore, this can overflow after approximately 584 years.
+ * @note The maximum value timeInNanoseconds can hold is 0xFFFFFFFFFFFFFFFF which is 1.844674407e+19. Therefore, this can overflow after approximately 584 years.
  */
-void GetNanoseconds( uint64_t& time );
+void GetNanoseconds( uint64_t& timeInNanoseconds );
+
+/**
+ * @brief 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.
+ *
+ * @param[in]  timeInNanoseconds  The 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.
+ */
+void SleepUntil( uint64_t timeInNanoseconds );
 
 } // namespace TimeService