Lines Matching defs:stime
84 struct timespec *stime)
108 stime->tv_sec = ss.sys_timestamp.tv_sec;
109 stime->tv_nsec = ss.sys_timestamp.tv_nsec;
112 if (stime->tv_nsec < nsecs) {
113 stime->tv_sec--;
114 stime->tv_nsec = stime->tv_nsec + NSECS_PER_SEC - nsecs;
116 stime->tv_nsec -= nsecs;
118 stime->tv_sec -= secs;
120 if (stime->tv_nsec + nsecs > NSECS_PER_SEC) {
121 stime->tv_sec++;
123 stime->tv_nsec = (stime->tv_nsec + nsecs) % NSECS_PER_SEC;
124 stime->tv_sec += secs;