Active object: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
(→‎{{header|ATS}}: I forgot a factor of 1/2)
m (→‎{{header|Wren}}: Changed to Wren S/H)
 
Line 3,762:
 
What I've done instead is to pre-compute the number of updates performed on my machine for a given function and time period which is a fairly stable figure (though it will obviously be different on other machines). I've then used this figure to measure elapsed time for each update. On average this gives results of around 0.003 seconds which I consider acceptable in the circumstances.
<syntaxhighlight lang="ecmascriptwren">import "scheduler" for Scheduler
import "timer" for Timer
 
9,485

edits