Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #37504
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2019-10-05 15:44 -0700 |
| References | <6ff17c5f-0702-4fef-8f1d-51c44a54fad6@googlegroups.com> <gvoq07Fgr63U1@mid.individual.net> <2270c2cc-48a6-48eb-b7bd-113ccfbb7186@googlegroups.com> <gvreqqF37pjU1@mid.individual.net> |
| Message-ID | <fb3ecd03-9ca0-4b68-8a70-7676d833c0ab@googlegroups.com> (permalink) |
| Subject | Re: setTimeout( ), with startpoint at t0 |
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
Den lördag 5 oktober 2019 kl. 13:58:25 UTC+2 skrev Arno Welzel:
> Jonas Thörnvall:
>
> > Den fredag 4 oktober 2019 kl. 13:50:36 UTC+2 skrev Arno Welzel:
> >> On 03.10.19 13:11, Jonas Thörnvall wrote:
> >>
> >>> stopRec=setTimeout(STARTREC,interval);
> >>>
> >>> Basicly i want first call immediatly at t0, but this first call will happen after interval?
> >>
> >> What is "t0"? What is "STARTREC"?
> >>
> >>> I tried this.
> >>> stopRec=setTimeout(STARTREC,0*interval);
> >>> But i am not sure it works like i think?
> >>
> >> See
> >> <https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout>
> >>
> >>
> >> --
> >> Arno Welzel
> >> https://arnowelzel.de
> >
> > Well t0 is Time zero 0 ms, what startRec is, is not interesting. If you want to find out look here.
>
> Why do you even use setTimeout() then and not just call STARTREC directly?
>
>
> --
> Arno Welzel
> https://arnowelzel.de
Well i think it is leftover from when recording and play was separate, and i still use the clearTimeout to stop a scrollbar animation and the playup of metronome.
if (tottime>re){ clearTimeout(stopRec);STOPREC();}
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
setTimeout( ), with startpoint at t0 Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-10-03 04:11 -0700
Re: setTimeout( ), with startpoint at t0 JJ <jj4public@vfemail.net> - 2019-10-03 19:41 +0700
Re: setTimeout( ), with startpoint at t0 Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-10-03 08:34 -0700
Re: setTimeout( ), with startpoint at t0 "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-10-03 21:53 +0200
Re: setTimeout( ), with startpoint at t0 Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-10-03 14:58 -0700
Re: setTimeout( ), with startpoint at t0 Arno Welzel <usenet@arnowelzel.de> - 2019-10-04 13:50 +0200
Re: setTimeout( ), with startpoint at t0 Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-10-04 07:33 -0700
Re: setTimeout( ), with startpoint at t0 Arno Welzel <usenet@arnowelzel.de> - 2019-10-05 13:58 +0200
Re: setTimeout( ), with startpoint at t0 Jonas Thörnvall <jonas.thornvall@gmail.com> - 2019-10-05 15:44 -0700
csiph-web