Return the wall time to within an added constant (includes sleep time)
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module.
function wallTime() result(o)
!! Return the wall time to within an added constant (includes sleep time)
real(wp)::o
integer,parameter::ip = selected_int_kind(15)
integer(ip)::ticks,tickRate,r
call system_clock(ticks,tickRate)
r = mod(ticks,tickRate)
o = real(ticks/tickRate,wp)+real(r,wp)/real(tickRate,wp)
end function wallTime