On 10/23/07, Kizul Emeraldfire <[EMAIL PROTECTED]> wrote:
> On 9/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> wrote:
> > teeemcee
> > 2007-09-19 05:56:37 -0700 (Wed, 19 Sep 2007)
> > 154
> > Add "milliseconds" command (to relieve those people who went to the
> trouble of synchronising scripts to music)
> > Also copy scriptstate$ changes to U. branch
> > ---
> > U   rel/ubersetzung/docs/plotdict.xml
> > U   rel/ubersetzung/whatsnew.txt
> > U   rel/ubersetzung/yetmore.bas
> > U   wip/docs/plotdict.xml
> > U   wip/plotscr.hsd
> > U   wip/whatsnew.txt
> > U   wip/yetmore.bas
>
> Say TMC, I just looked around on CastleParadox and on the O.H.R. wiki, and I
> can't find anything saying how to use the milliseconds command — not even
> the help thing in James's HamsterSpeak Script Editor knows.
>
> Any chance you could shed some light on how to USE this wondrous command?
> o.O

It is documented in the plotscript dictionary:

milliseconds
Use to measure time intervals accurately. Subtract two values returned
by milliseconds at different times to find the number of ms (1000ths
of a second) elapsed in between. A single value is useless (the
computer's uptime).

For example, to wait for 2.5 seconds,

variable (start time)
start time := milliseconds
while (milliseconds << start time + 2500) do (wait)

(Maybe the dictionary needs to be re-uploaded to the wiki)
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to