Use the diff to compare two time samples to each other. Not very accurate.
function clock output Real t; end clock;