Ignore:
Timestamp:
2018-08-25T19:06:27Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Children:
72df613
Parents:
02f547f
Message:

Provide a single clock() implementation in libc

Also attempt to fix the implementation to return microseconds (clocks)
rather than processor cycles.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/include/posix/time.h

    r02f547f rcc36562b  
    4242
    4343#include "libc/time.h"
    44 
    45 #undef CLOCKS_PER_SEC
    46 #define CLOCKS_PER_SEC (1000000L)
    4744
    4845#ifndef __locale_t_defined
     
    10299    const struct timespec *rqtp, struct timespec *rmtp);
    103100
    104 /* CPU Time */
    105 extern clock_t clock(void);
    106 
    107101#endif  // POSIX_TIME_H_
    108102
Note: See TracChangeset for help on using the changeset viewer.