Changes in uspace/app/nettest2/nettest2.c [26de91a:1ab8539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/nettest2/nettest2.c
r26de91a r1ab8539 356 356 357 357 struct timeval time_before; 358 rc = gettimeofday(&time_before, NULL); 359 if (rc != EOK) { 360 fprintf(stderr, "Get time of day error %d\n", rc); 361 return rc; 362 } 358 gettimeofday(&time_before, NULL); 363 359 364 360 rc = sockets_sendto_recvfrom(verbose, socket_ids, sockets, address, … … 368 364 369 365 struct timeval time_after; 370 rc = gettimeofday(&time_after, NULL); 371 if (rc != EOK) { 372 fprintf(stderr, "Get time of day error %d\n", rc); 373 return rc; 374 } 366 gettimeofday(&time_after, NULL); 375 367 376 368 if (verbose) … … 380 372 tv_sub(&time_after, &time_before)); 381 373 382 rc = gettimeofday(&time_before, NULL); 383 if (rc != EOK) { 384 fprintf(stderr, "Get time of day error %d\n", rc); 385 return rc; 386 } 374 gettimeofday(&time_before, NULL); 387 375 388 376 rc = sockets_sendto(verbose, socket_ids, sockets, address, addrlen, … … 396 384 return rc; 397 385 398 rc = gettimeofday(&time_after, NULL); 399 if (rc != EOK) { 400 fprintf(stderr, "Get time of day error %d\n", rc); 401 return rc; 402 } 386 gettimeofday(&time_after, NULL); 403 387 404 388 if (verbose)
Note:
See TracChangeset
for help on using the changeset viewer.