CCL Home Page
Up Directory CCL ms_sleep5
#include 
#include 
#include 
#include 
#include 
#include 

/* supposedly workd on AS/400 IBM systems -- had no chance to try it.
 * They say, you need to compile the program using CRTCMOD and then
 * bind the module with other modules using ms_sleep() to create program
 * object (sounds like IBMish) */


_MT_Time mt

void ms_sleep(t)
int t;
{
 int s;
 long ms;

 sub = 0;
 if(t <= 0) {
   return;
   }
 s = t/1000;
 ms = t % 1000;
 if(s > 0) {
   sleep(s);
   }
 if(ms > 0) {
   mitime(&mt, 0, 0, 0, ms/10);
   waittime(&mt, 0);
   }
 return;
 }

 

 
Modified: Sat Jul 5 16:00:00 1997 GMT
Page accessed 4998 times since Sat Apr 17 22:05:26 1999 GMT