Skip to content

raylib.WaitTime

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Wait for some time (stop program execution) NOTE: Sleep() granularity could be around 10 ms, it means, Sleep() could take longer than expected... for that reason a busy wait loop is used REF: http://stackoverflow.com/questions/43057578/c-programming-win32-games-sleep-taking-longer-than-expected REF: http://www.geisswerks.com/ryan/FAQS/timing.html --> All about timing on Win32!

Parameters

Parameter Default Value Note
seconds 1.0

Return value

None.

Notes

Example

print "Waiting 0.5 seconds..."
raylib.WaitTime 0.5
print "Done."

Clone this wiki locally