home *** CD-ROM | disk | FTP | other *** search
- /* delay - Pauses for a specified number of microseconds. Used to slow
- * life by delaying between generations.
- * Params: wait - time in microseconds
- * Return: None
- */
-
- #include <wesson.h>
-
- void delay(clock_t wait)
- {
- clock_t t1, t2;
-
- if(!wait) return;
-
- t1 = wait + clock();
- do
- {
- t2 = clock();
- }
- while( t2 < t1 );
- }
-
-