Timing
Imagine has full thread supprot that lets you create threads and thread safe Mutex locks.
imagine_current_time_get
void imagine_current_time_get(uint32 *seconds, uint32 *fractions);
Description: get time in seconds and fractions of secondsimagine_delta_time_compute
double imagine_delta_time_compute(uint new_seconds, uint new_fractions, uint old_seconds, uint old_fractions);
Description: computes the ammount of time that has elapsed between two time messurements.imagine_current_system_time_get
int64 imagine_current_system_time_get();
Description: Returns the current system time.imagine_current_date_local
void imagine_current_date_local(int64 time, uint *seconds, uint *minutes, uint *hours, uint *week_days, uint *month_days, uint *month, uint *year);
Description: Converts a system time stamp into the curent local time and date information.imagine_sleepi
void imagine_sleepi(uint seconds, uint nano_seconds);
imagine_sleepd
void imagine_sleepd(double time);