MCPcopy Create free account
hub / github.com/OpenPrinting/cups / cups_elapsed

Function cups_elapsed

cups/dest.c:3391–3405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3389 */
3390
3391static int /* O - Elapsed time in milliseconds */
3392cups_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

Callers 1

cups_enum_destsFunction · 0.85

Calls 1

_cupsGetClockFunction · 0.85

Tested by

no test coverage detected