Efl.Loop.time

Description

Retrieves the time at which the last loop stopped waiting for timeouts or events.

Since 1.22

Values

  • timepoint - Time in seconds

Getter

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(). 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 a unix timestamp instead.

Since 1.22

Setter

You should never need/call this, unless you are implementing a custom tick source for an animator.

The time point must match whatever zero time you get from ecore_time_get() and Efl.Loop.time.get() (same 0 point). What this point is is undefined, so unless your source uses the same 0 time, then you may have to adjust and do some guessing.

Since 1.22

Signature

@property time {
    get {}
    set @protected {}
    values {
        timepoint: double;
    }
}

C signature

double efl_loop_time_get(const Eo *obj);
void efl_loop_time_set(Eo *obj, double timepoint);

Implemented by