Query: dtk_difftime_us
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
DTK_ADDTIME(3) Draw Toolkit manual DTK_ADDTIME(3)NAMEdtk_difftime_s, dtk_difftime_ms, dtk_difftime_us, dtk_difftime_ns - timestamp differenceSYNOPSIS#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);DESCRIPTIONThese 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 VALUEAll the functions return the difference of time.SEE ALSOdtk_nanosleep(3), dtk_gettime(3), dtk_addtime(3)EPFL2011 DTK_ADDTIME(3)