Skip to content

cf_on_timestamp

Category: time
GitHub: cute_time.h


Returns true for one frame where a specific timestamp (relative to program start) occurs.

bool cf_on_timestamp(double timestamp);
Parameters Description
timestamp The timestamp.

Remarks

This function is super useful for general purpose gameplay implementation where you want an event to fire at N seconds (since program start). Simply place this within an if-statement!

cf_on_interval
cf_between_interval