Hmm, should probably rather use time() instead of clock()