Ignore:
File:
1 edited

Legend:

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

    r0a0dff8 ra35b458  
    5151#include <loc.h>
    5252#include <device/clock_dev.h>
     53#include <thread.h>
    5354
    5455#define ASCTIME_BUF_LEN  26
     
    486487 * @param tv2 Second timeval.
    487488 */
    488 void tv_add(struct timeval *tv1, const struct timeval *tv2)
     489void tv_add(struct timeval *tv1, struct timeval *tv2)
    489490{
    490491        tv1->tv_sec += tv2->tv_sec;
     
    502503 *
    503504 */
    504 suseconds_t tv_sub_diff(const struct timeval *tv1, const struct timeval *tv2)
     505suseconds_t tv_sub_diff(struct timeval *tv1, struct timeval *tv2)
    505506{
    506507        return (tv1->tv_usec - tv2->tv_usec) +
     
    514515 *
    515516 */
    516 void tv_sub(struct timeval *tv1, const struct timeval *tv2)
     517void tv_sub(struct timeval *tv1, struct timeval *tv2)
    517518{
    518519        tv1->tv_sec -= tv2->tv_sec;
     
    530531 *
    531532 */
    532 int tv_gt(const struct timeval *tv1, const struct timeval *tv2)
     533int tv_gt(struct timeval *tv1, struct timeval *tv2)
    533534{
    534535        if (tv1->tv_sec > tv2->tv_sec)
     
    550551 *
    551552 */
    552 int tv_gteq(const struct timeval *tv1, const struct timeval *tv2)
     553int tv_gteq(struct timeval *tv1, struct timeval *tv2)
    553554{
    554555        if (tv1->tv_sec > tv2->tv_sec)
Note: See TracChangeset for help on using the changeset viewer.