3 long long iris::get_current_time_in_us() {
5 gettimeofday(&v, nullptr);
6 return (long long)v.tv_sec * 1000000 + v.tv_usec;
10 int iris::round_up_to_next_multiple_of_2(int n) {
11 int bits = 0, ones = 0, oldn = n;
19 if (ones == 1) // already a multiple of 2