|
|
@ -76,7 +76,7 @@ void timediff(struct timeb *now, struct timeb *begin, int *sec, int *msec) |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
*msec = now->millitm - begin->millitm; |
|
|
*msec = now->millitm - begin->millitm; |
|
|
*sec = now->time - begin->time; |
|
|
|
|
|
|
|
|
*sec = (int)(now->time - begin->time); |
|
|
if (*msec < 0) { |
|
|
if (*msec < 0) { |
|
|
*msec += 1000; |
|
|
*msec += 1000; |
|
|
(*sec)--; |
|
|
(*sec)--; |
|
|
|