Changes in uspace/app/tester/ipc/ping_pong.c [9d58539:7f9d97f3] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/ipc/ping_pong.c
r9d58539 r7f9d97f3 43 43 44 44 struct timeval start; 45 if (gettimeofday(&start, NULL) != 0) { 46 TPRINTF("\n"); 47 return "Failed getting the time"; 48 } 45 gettimeofday(&start, NULL); 49 46 50 47 uint64_t count = 0; 51 48 while (true) { 52 49 struct timeval now; 53 if (gettimeofday(&now, NULL) != 0) { 54 TPRINTF("\n"); 55 return "Failed getting the time"; 56 } 50 gettimeofday(&now, NULL); 57 51 58 if (tv_sub (&now, &start) >= DURATION_SECS * 1000000L)52 if (tv_sub_diff(&now, &start) >= DURATION_SECS * 1000000L) 59 53 break; 60 54
Note:
See TracChangeset
for help on using the changeset viewer.