Revision 23: Fixed overrun in time measuring mechanism if ULONG_MAX is exceeded