I need a method that can give me the number of milliseconds or seconds elapsed since the system started. I could parse /proc/uptime , but I can't afford to lose performance on this I / 0 and parsing.
I use Linux and C / C ++. Maybe I can put Qt / Boost, but it's better to be something native.
source share