Re: sleep( ) in DOS32

new topic     » goto parent     » topic index » view thread      » older message » newer message

On 24 Nov 2004, at 17:17, Rubens Monteiro Luciano wrote:

> 
> 
> Hi,
> 
>  How do I sleep less than 1 second in DOS32 ?
>  Is there anyway to simulate a sleep of 500 miliseconds, for example ?
>  The system must stay free during this time.
>  Maybe it=B4s time to have a sleep_miliseconds( ) function...

Since dos is neither re-entrant nor multitasking, what is it to stay free for?

On Wed, 17 Nov 2004 16:09:25 -0800, rudy toews 
<guest at rapideuphoria.com> wrote:
> Re: Eu locking harddrives    
<http://statik.topica.com/lists/read/images/icon_pencil.gif>  >   BTW: How
> about allowing any atom as argument for sleep(), not only an integer? I just 
got an error message from Eu,
> because I tried to call sleep(0.5).
> 
> --for .exw (WinDoze)
> include dll.e
> include misc.e --for old sleep()
> constant
> k32=open_dll("kernel32"),
> zSleep=define_c_proc(k32,"Sleep",{C_UINT})
> --usage:
> --c_proc(zSleep,{x})
> --where x is in MILLISECONDS! --Zero allowed
> --demo is:
> printf(1,"%s\n",{"Start"})
> c_proc(zSleep,{3500})
> printf(1,"%s\n",{"3.5 seconds later..."})
> sleep(2) -- ;)
> 
> Nice, thank you.
> 
> Regards,
>    Juergen

> http://www.ListFilter.com/cgi-
bin/esearch.exu?fromMonth=A&fromYear=9&toMonth=A&toYear=9&postedB
y=otterdad&keywords=sleep

> Yours, OtterDad

Kat

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu