mirror of
https://github.com/urbit/shrub.git
synced 2024-12-22 18:31:44 +03:00
increases %behn timer accuracy
This commit is contained in:
parent
a77f6401a7
commit
c3555c25a9
@ -84,7 +84,11 @@ u3_behn_ef_doze(u3_noun wen)
|
||||
(c3y == u3du(wen)) &&
|
||||
(c3y == u3ud(u3t(wen))) )
|
||||
{
|
||||
c3_d gap_d = u3_time_gap_ms(u3k(u3A->now), u3k(u3t(wen)));
|
||||
struct timeval tim_tv;
|
||||
gettimeofday(&tim_tv, 0);
|
||||
|
||||
u3_noun now = u3_time_in_tv(&tim_tv);
|
||||
c3_d gap_d = u3_time_gap_ms(now, u3k(u3t(wen)));
|
||||
// XX remove timer backoff
|
||||
//
|
||||
gap_d += teh_u->run_w;
|
||||
|
Loading…
Reference in New Issue
Block a user