Changes in uspace/lib/posix/src/time.c [163eccd7:44e8541] in mainline
- File:
-
- 1 edited
-
uspace/lib/posix/src/time.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/src/time.c
r163eccd7 r44e8541 206 206 207 207 /** 208 * Get clock resolution. 208 * Get clock resolution. Only CLOCK_REALTIME is supported. 209 209 * 210 210 * @param clock_id Clock ID. … … 218 218 switch (clock_id) { 219 219 case CLOCK_REALTIME: 220 case CLOCK_MONOTONIC:221 220 res->tv_sec = 0; 222 221 res->tv_nsec = USEC2NSEC(1); /* Microsecond resolution. */ … … 229 228 230 229 /** 231 * Get time. 230 * Get time. Only CLOCK_REALTIME is supported. 232 231 * 233 232 * @param clock_id ID of the clock to query. … … 247 246 tp->tv_nsec = USEC2NSEC(tv.tv_usec); 248 247 return 0; 249 case CLOCK_MONOTONIC:250 getuptime(tp);251 return 0;252 248 default: 253 249 errno = EINVAL; … … 271 267 switch (clock_id) { 272 268 case CLOCK_REALTIME: 273 case CLOCK_MONOTONIC:274 269 // TODO: setting clock 275 270 // FIXME: HelenOS doesn't actually support hardware
Note:
See TracChangeset
for help on using the changeset viewer.
