Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Arno Welzel Newsgroups: comp.lang.javascript Subject: Re: setTimeout( ), with startpoint at t0 Date: Sat, 5 Oct 2019 13:58:12 +0200 Lines: 31 Message-ID: References: <6ff17c5f-0702-4fef-8f1d-51c44a54fad6@googlegroups.com> <2270c2cc-48a6-48eb-b7bd-113ccfbb7186@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net KJGlqw5D6HGmuCqTM8X6YQdMEMoNhypw3GWZAlGyaHqXcz07iF Cancel-Lock: sha1:O8kkqoS+qKMCxaygd7wPYKdV/aM= In-Reply-To: <2270c2cc-48a6-48eb-b7bd-113ccfbb7186@googlegroups.com> Xref: csiph.com comp.lang.javascript:37501 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 >> >> >> >> -- >> 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