CnUnix

[알림판목록 I] [알림판목록 II] [글목록][이 전][다 음]
[ 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.

[알림판목록 I] [알림판목록 II] [글 목록][이 전][다 음]
키 즈 는 열 린 사 람 들 의 모 임 입 니 다.