MCPcopy Create free account
hub / github.com/ioi/isolate / timespec_sub

Function timespec_sub

util.c:55–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void
56timespec_sub(const struct timespec *a, const struct timespec *b, struct timespec *result)
57{
58 result->tv_sec = a->tv_sec - b->tv_sec;
59 result->tv_nsec = a->tv_nsec - b->tv_nsec;
60
61 if (result->tv_nsec < 0)
62 {
63 result->tv_sec -= 1;
64 result->tv_nsec += 1000000000L;
65 }
66}
67
68int
69dir_exists(char *path)

Callers 1

get_wall_time_msFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…