chickadee » raspberry-pi-gpio » current-time-raw

current-time-rawprocedure

Returns two values the number of seconds and nanosecons since process- or machine startup.

Uses Linux' clock_gettime to read CLOCK_MONOTONIC_RAW, i.e. the result value is not effected by adjustments from NTP etc. and therefore suited to measure physical time deltas.