HelenOS sources
NSECS_PER_SEC 307 uspace/lib/c/generic/time.c sec += floor_div(nsec, NSECS_PER_SEC);
NSECS_PER_SEC 308 uspace/lib/c/generic/time.c nsec = floor_mod(nsec, NSECS_PER_SEC);
NSECS_PER_SEC 493 uspace/lib/c/generic/time.c while (ts->tv_nsec >= NSECS_PER_SEC) {
NSECS_PER_SEC 495 uspace/lib/c/generic/time.c ts->tv_nsec -= NSECS_PER_SEC;
NSECS_PER_SEC 499 uspace/lib/c/generic/time.c ts->tv_nsec += NSECS_PER_SEC;
NSECS_PER_SEC 511 uspace/lib/c/generic/time.c ts->tv_sec += nsecs / NSECS_PER_SEC;
NSECS_PER_SEC 512 uspace/lib/c/generic/time.c ts->tv_nsec += nsecs % NSECS_PER_SEC;
HelenOS homepage, sources at GitHub