event_delta
interface is implemented by CPUs and
clocks that advance time.
The set_delta method notifies the CPU about
the number of cycles the CPU should run before the next event
should be dispatched by a call to the handle_event
method of the event_handler
interface.
The get_delta queries the CPU for the current count of remaning cycles to the next event. The returned number should always be smaller or equal to the number of cycles established by a previous call to set_delta.
SIM_INTERFACE(event_delta) { uint64 (*set_delta)(conf_object_t *NOTNULL obj, conf_object_t *NOTNULL event_handler_obj, const event_class_t *next_event_ec, uint64 delta); uint64 (*get_delta)(conf_object_t *NOTNULL obj, conf_object_t *NOTNULL event_handler_obj); }; #define EVENT_DELTA_INTERFACE "event_delta"