You might find the `RealTime::now()` function in common/realtime.h handy - it returns the current time as a floating point count of seconds since the epoch, using the most precise function it knows of for the current platform.