These are function to retrieve time in a given format. More...
Functions | |
double | ecore_time_get (void) |
Retrieves the current system time as a floating point value in seconds. More... | |
double | ecore_time_unix_get (void) |
Retrieves the current UNIX time as a floating point value in seconds. More... | |
double | ecore_loop_time_get (void) |
Retrieves the time at which the last loop stopped waiting for timeouts or events. More... | |
These are function to retrieve time in a given format.
Examples:
EAPI double ecore_time_get | ( | void | ) |
Retrieves the current system time as a floating point value in seconds.
This uses a monotonic clock and thus never goes back in time while machine is live (even if user changes time or timezone changes, however it may be reset whenever the machine is restarted).
References EAPI, ecore_time_unix_get(), EINA_UNLIKELY, and evil_time_get().
Referenced by ecore_con_client_fd_get(), ecore_con_client_uptime_get(), ecore_con_server_add(), ecore_con_server_uptime_get(), ecore_evas_buffer_allocfunc_new(), ecore_evas_pixmap_depth_get(), ecore_loop_time_get(), ecore_main_fd_handler_active_set(), ecore_main_loop_begin(), ecore_main_loop_iterate(), ecore_main_loop_iterate_may_block(), ecore_psl1ght_shutdown(), ecore_sdl_shutdown(), ecore_thread_global_data_wait(), ecore_timer_add(), ecore_timer_freeze(), ecore_timer_pending_get(), ecore_timer_reset(), ecore_timer_thaw(), edje_object_play_set(), emotion_object_extension_may_play_get(), and ethumb_client_generate().
EAPI double ecore_time_unix_get | ( | void | ) |
Retrieves the current UNIX time as a floating point value in seconds.
References EAPI.
Referenced by ecore_time_get().
EAPI double ecore_loop_time_get | ( | void | ) |
Retrieves the time at which the last loop stopped waiting for timeouts or events.
This gets the time that the main loop ceased waiting for timouts and/or events to come in or for signals or any other interrupt source. This should be considered a reference point for all time based activity that should calculate its timepoint from the return of ecore_loop_time_get(). Use this UNLESS you absolutely must get the current actual timepoint - then use ecore_time_get(). Note that this time is meant to be used as relative to other times obtained on this run. If you need absolute time references, use ecore_time_unix_get() instead.
This function can be called before any loop has ever been run, but either ecore_init() or ecore_time_get() must have been called once.
References ecore_time_get().
Referenced by ecore_animator_custom_tick(), ecore_animator_timeline_add(), ecore_fb_touch_screen_calibrate_get(), ecore_pipe_write(), ecore_timer_add(), ecore_timer_thaw(), edje_object_animation_get(), efreet_mime_fallback_type_get(), efreet_mime_type_cache_flush(), and ethumb_client_generate().