On Wednesday, 9 December 2015 at 10:00:46 UTC, Andrea Fontana
wrote:
On Tuesday, 8 December 2015 at 15:35:18 UTC, Taylor Hillegeist
wrote:
So, I mostly do programming that is of run to completion
verity. But I have a dream of calling functions periodically.
So my question is:
What is the
On Tuesday, 8 December 2015 at 16:40:04 UTC, Taylor Hillegeist
wrote:
However i seem to get jitter of around 1 ms. Is there anything
else i can do to improve?
Do you want to get precision better than period of thread
switches?
On Tuesday, 8 December 2015 at 15:35:18 UTC, Taylor Hillegeist
wrote:
So, I mostly do programming that is of run to completion
verity. But I have a dream of calling functions periodically.
So my question is:
What is the best (most time accurate) way to call a function
every n time units?
prev=now;
call();
wait(prev+dur-now);
call();
On Tuesday, 8 December 2015 at 15:50:35 UTC, Kagamin wrote:
Oops, no.
next+=dur;
wait(next-now);
call();
what calls does this use from the std library? to get the current
time? Wait a amount of time?
So, I mostly do programming that is of run to completion verity.
But I have a dream of calling functions periodically. So my
question is:
What is the best (most time accurate) way to call a function
every n time units?
What is the best way to measure the jitter of these calls?
I'm also
Oops, no.
next+=dur;
wait(next-now);
call();
On Tuesday, 8 December 2015 at 15:35:18 UTC, Taylor Hillegeist
wrote:
So, I mostly do programming that is of run to completion
I took a stab at the problem:
http://dpaste.dzfl.pl/2eef530d00fc
0 nsecs with jitter of :5 nsecs
498937256 nsecs with jitter of :1062744 nsecs
499036173
On Tue, 08 Dec 2015 15:35:18 +, Taylor Hillegeist wrote:
> So, I mostly do programming that is of run to completion verity.
> But I have a dream of calling functions periodically. So my question is:
>
> What is the best (most time accurate) way to call a function every n
> time units?
On Tuesday, 8 December 2015 at 16:40:04 UTC, Taylor Hillegeist
wrote:
On Tuesday, 8 December 2015 at 15:35:18 UTC, Taylor Hillegeist
wrote:
So, I mostly do programming that is of run to completion
I took a stab at the problem:
http://dpaste.dzfl.pl/2eef530d00fc
0 nsecs with jitter of
10 matches
Mail list logo