The os.clock function uses the 'clock' system call. On that particular system you refer to, `clock_t`, the return value of clock, is defined as a 32-bit integer. What you're seeing is that integer wrapping around due to overflow.