Calls to time::precise_time_ns() might be expensive.