change timer for windows to cross-platform function clock() in time.h