1. Sleep function with fractional time...

Does anyone know where it is?
-- 
MrTrick
-------------------------------------------------------------------------------------
magnae clunes mihi placent, nec possum de hac re mentiri. 
-------------------------------------------------------------------------------------

new topic     » topic index » view message » categorize

2. Re: Sleep function with fractional time...

Patrick Barnes wrote:
> 
> Does anyone know where it is?
> -- 
> MrTrick
>
> -------------------------------------------------------------------------------------
> magnae clunes mihi placent, nec possum de hac re mentiri. 
>
> -------------------------------------------------------------------------------------
> 
> 
Re: Eu locking harddrives   
<http://statik.topica.com/lists/read/images/icon_pencil.gif>  Juergen Luethje
<http://statik.topica.com/lists/read/images/icon_clock.gif>  Feb 07, 2004 13:36
PST


Wolf wrote:

 
  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



i saved this message to my disk. this is all i have at moment.
hope this is some of what you are looking for.
rudy

new topic     » goto parent     » topic index » view message » categorize

3. Re: Sleep function with fractional time...

Thank you!
Rob, any reason why this is not used by the standard library?


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
> 
> i saved this message to my disk. this is all i have at moment.
> hope this is some of what you are looking for.
> rudy
> 
-- 
MrTrick

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu