Changeset 378d349 in mainline


Ignore:
Timestamp:
2018-08-25T08:34:26Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Children:
b43f393
Parents:
8c85f0f
Message:

Provide a dummy implementation of clock()

Location:
uspace/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/time.c

    r8c85f0f r378d349  
    7070static async_sess_t *clock_conn = NULL;
    7171
     72/** Return processor time used by the program.
     73 *
     74 * @return -1  The processor time used is not available in this implementation.
     75 */
     76clock_t clock(void)
     77{
     78        return (clock_t) -1;
     79}
     80
    7281/** Check whether the year is a leap year.
    7382 *
  • uspace/lib/posix/include/posix/time.h

    r8c85f0f r378d349  
    4343#include "libc/time.h"
    4444
    45 #ifndef CLOCKS_PER_SEC
     45#undef CLOCKS_PER_SEC
    4646#define CLOCKS_PER_SEC (1000000L)
    47 #endif
    4847
    4948#ifndef __locale_t_defined
Note: See TracChangeset for help on using the changeset viewer.