diff options
Diffstat (limited to 'sysdep/unix/io-loop.h')
-rw-r--r-- | sysdep/unix/io-loop.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sysdep/unix/io-loop.h b/sysdep/unix/io-loop.h index 2b0b7ebf..b5da7aba 100644 --- a/sysdep/unix/io-loop.h +++ b/sysdep/unix/io-loop.h @@ -29,6 +29,11 @@ void pipe_pollin(struct pipe *, struct pfd *); void pipe_drain(struct pipe *); void pipe_kick(struct pipe *); +struct total_time_since { + u64 total; + u64 since; +}; + struct birdloop { node n; @@ -60,6 +65,9 @@ struct birdloop struct bird_thread *thread; +#define TIME_BY_SEC_SIZE 16 + u64 time_by_sec_ns[TIME_BY_SEC_SIZE]; + u64 last_time_finished_ns; u64 total_time_spent_ns; }; |