Re:Wait-free queueing and ultra-low latency logging
by nkurz on Thursday May 29, 2014 @04:15PM
(#7818358)
Historically this is true, but recent x64 Linux has made a lot of improvement here. In particular, gettimeofday() is usually optimized so as not to require a context switch: http://blog.tinola.com/?e=5. And then there are some even faster options that do the caching for you: https://access.redhat.com/site/documentation/en-US/Red_Hat_E...
Much better to just get the time every once in a while and cache it.