I am creating an event with g_timeout_add
or g_timeout_add_seconds
which returns an event id; I can cancel the event by calling g_source_remove
.
However, at some point what I would like to do is see how much time is remaining until the event is fired. Is there a simple way to do this with the glib api, or do I need to manually store and compare timestamps with g_source_get_current_time
?