How To Wait/Pause?
How To Wait/Pause?
how do you pause program execution for an amount of time? what i need to do is like the BASIC sleep command, so pause 5 miliseconds is SLEEP 5. how do i do this in ps2sdk? thx
ps2sdk contains a basic libc. The parts it implements, should be very similar to any other libc:
and, lo and behold:
Code: Select all
NAME
sleep -- suspend thread execution for an interval measured in seconds
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <unistd.h>
unsigned int
sleep(unsigned int seconds);
Code: Select all
cheriff@lappy386:~/code/$ grep -R sleep ps2sdk/ee/libc/
ps2sdk/ee/libc/include/unistd.h:unsigned int sleep(unsigned int seconds);
Damn, I need a decent signature!
-
- Posts: 202
- Joined: Wed Aug 09, 2006 1:00 am