I just have a performance test on a lib, maybe some operation is nanosecond-class, so I wonder if there is any function can do such thing, thank you for paying attention.
I just have a performance test on a lib, maybe some operation is nanosecond-class,
Share
If you really need nano precision then you probably want HPET and the
clock_gettime(). First link even has some sample code to get you started with a nice explanation of the linux hpet support.