Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/src/time.c

    r163eccd7 r44e8541  
    206206
    207207/**
    208  * Get clock resolution.
     208 * Get clock resolution. Only CLOCK_REALTIME is supported.
    209209 *
    210210 * @param clock_id Clock ID.
     
    218218        switch (clock_id) {
    219219        case CLOCK_REALTIME:
    220         case CLOCK_MONOTONIC:
    221220                res->tv_sec = 0;
    222221                res->tv_nsec = USEC2NSEC(1); /* Microsecond resolution. */
     
    229228
    230229/**
    231  * Get time.
     230 * Get time. Only CLOCK_REALTIME is supported.
    232231 *
    233232 * @param clock_id ID of the clock to query.
     
    247246                tp->tv_nsec = USEC2NSEC(tv.tv_usec);
    248247                return 0;
    249         case CLOCK_MONOTONIC:
    250                 getuptime(tp);
    251                 return 0;
    252248        default:
    253249                errno = EINVAL;
     
    271267        switch (clock_id) {
    272268        case CLOCK_REALTIME:
    273         case CLOCK_MONOTONIC:
    274269                // TODO: setting clock
    275270                // FIXME: HelenOS doesn't actually support hardware
Note: See TracChangeset for help on using the changeset viewer.