News for hackers. Stuff that matters.
Re:Nanolog supports logging with 7 ns median latency by jnordwick on Friday August 23, 2024 @02:21PM (#41331562)
since you aren't going to be writing a message per nanosecond, you can always just do `last nanos = max(last nanos + 1, cur nanos)` and then use last nanos for the timestamp. you can even do it in rdtsc ticks and get 1/3 of nano values. Obv the clock isn't nearly that accurate, but it lets you use those fractional nanos to ensure a strictly increasing ordering.

There are no comments on this comment yet.