Changes in uspace/lib/c/generic/time.c [0a0dff8:a35b458] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/time.c
r0a0dff8 ra35b458 51 51 #include <loc.h> 52 52 #include <device/clock_dev.h> 53 #include <thread.h> 53 54 54 55 #define ASCTIME_BUF_LEN 26 … … 486 487 * @param tv2 Second timeval. 487 488 */ 488 void tv_add(struct timeval *tv1, conststruct timeval *tv2)489 void tv_add(struct timeval *tv1, struct timeval *tv2) 489 490 { 490 491 tv1->tv_sec += tv2->tv_sec; … … 502 503 * 503 504 */ 504 suseconds_t tv_sub_diff( const struct timeval *tv1, conststruct timeval *tv2)505 suseconds_t tv_sub_diff(struct timeval *tv1, struct timeval *tv2) 505 506 { 506 507 return (tv1->tv_usec - tv2->tv_usec) + … … 514 515 * 515 516 */ 516 void tv_sub(struct timeval *tv1, conststruct timeval *tv2)517 void tv_sub(struct timeval *tv1, struct timeval *tv2) 517 518 { 518 519 tv1->tv_sec -= tv2->tv_sec; … … 530 531 * 531 532 */ 532 int tv_gt( const struct timeval *tv1, conststruct timeval *tv2)533 int tv_gt(struct timeval *tv1, struct timeval *tv2) 533 534 { 534 535 if (tv1->tv_sec > tv2->tv_sec) … … 550 551 * 551 552 */ 552 int tv_gteq( const struct timeval *tv1, conststruct timeval *tv2)553 int tv_gteq(struct timeval *tv1, struct timeval *tv2) 553 554 { 554 555 if (tv1->tv_sec > tv2->tv_sec)
Note:
See TracChangeset
for help on using the changeset viewer.