I use "system_clock" as I find it to be much more accurate than "cpu_time". If I am not mistaken, that should be portable, as it is standard F95 and later (according to the gfortran manual, anyway).
--------------------------------------
Background: Chemical engineer, familiar mostly with...