clock function corrected

clock function generalized using maxint constant