fixed clock for larger word sizes
This commit is contained in:
parent
50114318e2
commit
4d5f61ce45
1 changed files with 7 additions and 1 deletions
|
@ -33,5 +33,11 @@ int clock() {
|
||||||
struct tbuf t;
|
struct tbuf t;
|
||||||
|
|
||||||
times(&t);
|
times(&t);
|
||||||
return( (t.utime + t.stime) & 077777);
|
return( (int)(t.utime + t.stime) &
|
||||||
|
#if EM_WSIZE <= 2
|
||||||
|
077777
|
||||||
|
#else
|
||||||
|
0x7fffffffL
|
||||||
|
#endif
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue