Rethinking multi-grain timestamps
Rethinking multi-grain timestamps
Posted Oct 11, 2023 22:55 UTC (Wed) by nijhof (subscriber, #4034)In reply to: Rethinking multi-grain timestamps by jlayton
Parent article: Rethinking multi-grain timestamps
Posted Oct 11, 2023 23:18 UTC (Wed)
by jlayton (subscriber, #31672)
[Link]
So to answer your question, there should be no problem. The idea is to update the apparent coarse-grained timestamp _source_ before returning any fine-grained timestamp. Any later fetch from the timestamp source (coarse or fine), will always be later than or equal to the last fine grained timestamp handed out. That should be good enough to keep "make" happy.
(Note that it's a bit more complex with the way that times are tracked in the timekeeping code, so I'm glossing over some details here.)
Rethinking multi-grain timestamps