Gopi Krishna Komanduri wrote:
> Hi Frnds,
>    I strucked up with some very basic and simple prog . Could anyone of you 
> please help me out. I need to write a code in such a way that , The code 
> should call a function which prints some random number for every 10 seconds . 
> The issue what I am facing is once the control; goes into function , 
> initially I can get the starting time . But I am unable to solve how my 
> system will lemme know after 10 seconds. I don't want to implement threads 
> concept. I don't want to ping time for every moment ( for optimisation 
> purpose) .

Windows:  Sleep(10000);
Linux/POSIX:  sleep(10);

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/

Reply via email to