clock function corrected

Overflow error in clock function due to long running operating systems
corrected