| 3389 | */ |
| 3390 | |
| 3391 | static int /* O - Elapsed time in milliseconds */ |
| 3392 | cups_elapsed(double *t) /* IO - Previous time */ |
| 3393 | { |
| 3394 | int msecs; /* Milliseconds */ |
| 3395 | double nt; /* New time */ |
| 3396 | |
| 3397 | |
| 3398 | nt = _cupsGetClock(); |
| 3399 | |
| 3400 | msecs = (int)(1000.0 * (nt - *t)); |
| 3401 | |
| 3402 | *t = nt; |
| 3403 | |
| 3404 | return (msecs); |
| 3405 | } |
| 3406 | #endif /* HAVE_DNSSD */ |
| 3407 | |
| 3408 |
no test coverage detected