4 ms·
When writing profiling code (https://github.com/vstefan/Instrum/ https://github.com/vstefan/Instrum/), I use clock_gettime(CLOCK_MONOTONIC) as it measures elaps
by psyren 15y ago
When writing profiling code (https://github.com/vstefan/Instrum/ https://github.com/vstefan/Instrum/), I use clock_gettime(CLOCK_MONOTONIC) as it measures elapsed time from an arbitrary reference point.
- VMG 15y ago...which is still measuring real time, not the time spent by the current process, or am I wrong? (maybe the downvoter can explain)