Replace clock with time

Clock seems to onyl be measuring cpu time, whereas what we really care about here is wall time