Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #34573 > unrolled thread
| Started by | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| First post | 2018-01-15 19:16 -0800 |
| Last post | 2018-01-15 19:30 -0800 |
| Articles | 2 — 1 participant |
Back to article view | Back to comp.lang.javascript
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
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2018-01-15 19:16 -0800 |
| Subject | Run timers after eachother? |
| Message-ID | <24105006-7b97-499f-8b66-48749579843a@googlegroups.com> |
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();
}
[toc] | [next] | [standalone]
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
|---|---|
| Date | 2018-01-15 19:30 -0800 |
| Message-ID | <ef4e8134-5301-4ad4-b1c2-e8cacd196dc5@googlegroups.com> |
| In reply to | #34573 |
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.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web