dtk_difftime_s man page

dtk_difftime_s, dtk_difftime_ms, dtk_difftime_us, dtk_difftime_ns — timestamp difference

Synopsis

#include <dtk_time.h>

long dtk_difftime_s(const struct dtk_timespec* ts,
const struct dtk_timespec* orig);
long dtk_difftime_ms(const struct dtk_timespec* ts,
const struct dtk_timespec* orig);
long dtk_difftime_us(const struct dtk_timespec* ts,
const struct dtk_timespec* orig);
long dtk_difftime_ns(const struct dtk_timespec* ts,
const struct dtk_timespec* orig);

Description

These functions returns the difference of time from orig to ts.

dtk_difftime_s() returns the difference in seconds.

dtk_difftime_ms() returns the difference in milliseconds.

dtk_difftime_us() returns the difference in microseconds.

dtk_difftime_ns() returns the difference in nanoseconds.

Return Value

All the functions return the difference of time.

See Also

dtk_nanosleep(3), dtk_gettime(3), dtk_addtime(3)

Referenced By

dtk_difftime_ms(3), dtk_difftime_ns(3) and dtk_difftime_us(3) are aliases of dtk_difftime_s(3).

2011 EPFL Draw Toolkit manual