Changeset 7f9d97f3 in mainline for uspace/app/tester/ipc/starve.c


Ignore:
Timestamp:
2015-03-14T21:48:01Z (9 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
270bf4f
Parents:
c0c38c7c
Message:

Make gettimeofday() return the actual microseconds.

Enhance struct tm to also have a field to hold microseconds and make
sure that this information propagates from the RTC driver.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/ipc/starve.c

    rc0c38c7c r7f9d97f3  
    5252                gettimeofday(&now, NULL);
    5353               
    54                 if (tv_sub(&now, &start) >= DURATION_SECS * 1000000L)
     54                if (tv_sub_diff(&now, &start) >= DURATION_SECS * 1000000L)
    5555                        break;
    5656               
Note: See TracChangeset for help on using the changeset viewer.