Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #34574
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2018-01-15 19:30 -0800 |
| References | <24105006-7b97-499f-8b66-48749579843a@googlegroups.com> |
| Message-ID | <ef4e8134-5301-4ad4-b1c2-e8cacd196dc5@googlegroups.com> (permalink) |
| Subject | Re: Run timers after eachother? |
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
Den tisdag 16 januari 2018 kl. 04:17:00 UTC+1 skrev Jonas Thörnvall:
> I have two similar timers that i want to be run aftereachother, how do i do it?
>
> function startrecord(){
> metInit();
> beatcount=setInterval(countIn, interval);
> recordmidi=true;
> mode="Record";
> document.getElementById("status").value=mode;
> //Set interval recording
> tid = setInterval(recTimer, interval);
> Rstarttime=performance.now();
> }
Well maybe a bit ugly but i run the other on abortion of the first one.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
Run timers after eachother? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-01-15 19:16 -0800 Re: Run timers after eachother? Jonas Thörnvall <jonas.thornvall@gmail.com> - 2018-01-15 19:30 -0800
csiph-web