Rev 4921 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4921 | Rev 6099 | ||
---|---|---|---|
Line 57... | Line 57... | ||
57 | clock () |
57 | clock () |
58 | { |
58 | { |
59 | struct tms tim_s; |
59 | struct tms tim_s; |
60 | clock_t res; |
60 | clock_t res; |
Line 61... | Line 61... | ||
61 | 61 | ||
62 | if ((res = (clock_t) _times_r (_REENT, &tim_s)) != -1) |
62 | if ((res = (clock_t) _times_r (_REENT, &tim_s)) != (clock_t) -1) |
63 | res = (clock_t) (tim_s.tms_utime + tim_s.tms_stime + |
63 | res = (clock_t) (tim_s.tms_utime + tim_s.tms_stime + |
Line 64... | Line 64... | ||
64 | tim_s.tms_cutime + tim_s.tms_cstime); |
64 | tim_s.tms_cutime + tim_s.tms_cstime); |
65 | 65 |