27#ifndef PED_TIMER_H_INCLUDED
28#define PED_TIMER_H_INCLUDED
void ped_timer_set_state_name(PedTimer *timer, const char *state_name)
Definition: timer.c:235
PedTimer * ped_timer_new(PedTimerHandler *handler, void *context)
Creates a timer.
Definition: timer.c:66
void ped_timer_destroy_nested(PedTimer *timer)
Destroys a nested timer.
Definition: timer.c:148
void ped_timer_reset(PedTimer *timer)
Definition: timer.c:188
void ped_timer_touch(PedTimer *timer)
Definition: timer.c:167
PedTimer * ped_timer_new_nested(PedTimer *parent, float nest_frac)
Creates a new nested timer.
Definition: timer.c:124
void ped_timer_update(PedTimer *timer, float new_frac)
Definition: timer.c:209
void ped_timer_destroy(PedTimer *timer)
Destroys a timer.
Definition: timer.c:87
void PedTimerHandler(PedTimer *timer, void *context)
Definition: timer.h:34
float frac
fraction of operation done
Definition: timer.h:40
PedTimerHandler * handler
who to notify on updates
Definition: timer.h:45
time_t start
time of start of op
Definition: timer.h:41
void * context
context to pass to handler
Definition: timer.h:46
const char * state_name
eg: "copying data"
Definition: timer.h:44
time_t now
time of last update (now!)
Definition: timer.h:42
time_t predicted_end
expected finish time
Definition: timer.h:43