T | |
thread_create | |
thread_destoy | |
thread_sleep | |
thread_wait | |
thread_yeild | |
tick | |
tick_defered, Entity | |
time_freq | |
time_get | |
time_timestamp |
Creates a new thread.
void *thread_create( void (*threadfunc)(void *), void * user )
Suspends the current thread for a given period.
void thread_sleep( int milliseconds )
Waits for a thread to be done or destroyed.
void thread_wait( void * thread )
Called progress the entity to the next tick.
virtual void tick()
Calls tick on all the entities in the world to progress the world to the next tick.
void tick()
Called after all entities tick() function has been called.
virtual void tick_defered()
Returns the frequency of the high resolution timer.
int64 time_freq()
Fetches a sample from a high resolution timer.
int64 time_get()
Retrives the current time as a UNIX timestamp
unsigned time_timestamp()