mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-02 07:06:41 +03:00
performance improvements
This commit is contained in:
parent
d7a5bae0e3
commit
38d9504478
2
n/t.c
2
n/t.c
@ -52,7 +52,7 @@ u3t_slog(u3_noun hod)
|
||||
gettimeofday(&f2, 0);
|
||||
timersub(&f2, &b4, &d0);
|
||||
ms_w = (d0.tv_sec * 1000) + (d0.tv_usec / 1000);
|
||||
printf("%d.%dms ", ms_w, (d0.tv_usec % 1000) / 10);
|
||||
printf("%d.%dms ", ms_w, (int) (d0.tv_usec % 1000) / 10);
|
||||
}
|
||||
gettimeofday(&b4, 0);
|
||||
old = 1;
|
||||
|
2
v/loop.c
2
v/loop.c
@ -461,6 +461,8 @@ u3_lo_shut(c3_o inn)
|
||||
//
|
||||
if ( c3y == inn ) {
|
||||
u3_unix_ef_look();
|
||||
u3_raft_work();
|
||||
_lo_time();
|
||||
}
|
||||
|
||||
// u3_lo_grab("lo_shut d", u3_none);
|
||||
|
2
v/raft.c
2
v/raft.c
@ -1577,7 +1577,7 @@ _raft_punk(u3_noun ovo)
|
||||
gettimeofday(&f2, 0);
|
||||
timersub(&f2, &b4, &d0);
|
||||
ms_w = (d0.tv_sec * 1000) + (d0.tv_usec / 1000);
|
||||
uL(fprintf(uH, "%%punk %s %d.%dms\n", txt_c, ms_w, (d0.tv_usec % 1000) / 10));
|
||||
uL(fprintf(uH, "%%punk %s %d.%dms\n", txt_c, ms_w, (int) (d0.tv_usec % 1000) / 10));
|
||||
free(txt_c);
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user