| [ CnUnix ] in KIDS 글 쓴 이(By): navaro (나바로) 날 짜 (Date): 2002년 12월 25일 수요일 오전 06시 01분 05초 제 목(Title): [Q] clock() I am using clock() to measure processor time not calendar time in ANSI C (UNIX). But it seems to give a wrong value when it exceeds 2000000000 (= 2000000000 / 1000000 (CLOCKS_PER_SEC) = 2000 sec). I guess it's because type clock_t is equivalent to long int. How can I measure processor time longer than 2000 sec? Thank you. |