/external/sg3_utils/src/ |
D | sg_seek.c | 168 struct timespec start_tm, end_tm; in main() local 170 struct timeval start_tm, end_tm; in main() local 323 start_tm.tv_sec = 0; in main() 324 start_tm.tv_nsec = 0; in main() 325 if (0 == clock_gettime(CLOCK_MONOTONIC, &start_tm)) in main() 332 start_tm.tv_sec = 0; in main() 333 start_tm.tv_usec = 0; in main() 334 gettimeofday(&start_tm, NULL); in main() 360 (start_tm.tv_sec || start_tm.tv_nsec)) { in main() 370 elapsed_usecs = (end_tm.tv_sec - start_tm.tv_sec) * 1000000; in main() [all …]
|
D | sg_turs.c | 501 struct timespec start_tm, end_tm; in main() local 503 struct timeval start_tm, end_tm; in main() local 590 start_tm.tv_sec = 0; in main() 591 start_tm.tv_nsec = 0; in main() 592 if (0 == clock_gettime(CLOCK_MONOTONIC, &start_tm)) in main() 599 start_tm.tv_sec = 0; in main() 600 start_tm.tv_usec = 0; in main() 601 gettimeofday(&start_tm, NULL); in main() 612 if (start_tm.tv_sec || start_tm.tv_nsec) { in main() 622 elapsed_usecs = (end_tm.tv_sec - start_tm.tv_sec) * 1000000; in main() [all …]
|
D | sg_requests.c | 147 struct timeval start_tm, end_tm; in main() local 387 start_tm.tv_sec = 0; in main() 388 start_tm.tv_usec = 0; in main() 389 gettimeofday(&start_tm, NULL); in main() 497 if (not_raw_hex && do_time && (start_tm.tv_sec || start_tm.tv_usec)) { in main() 502 res_tm.tv_sec = end_tm.tv_sec - start_tm.tv_sec; in main() 503 res_tm.tv_usec = end_tm.tv_usec - start_tm.tv_usec; in main()
|
D | sg_rbuf.c | 374 struct timeval start_tm, end_tm; in main() local 556 start_tm.tv_sec = 0; in main() 557 start_tm.tv_usec = 0; in main() 558 gettimeofday(&start_tm, NULL); in main() 645 if (op->do_time && (start_tm.tv_sec || start_tm.tv_usec)) { in main() 650 res_tm.tv_sec = end_tm.tv_sec - start_tm.tv_sec; in main() 651 res_tm.tv_usec = end_tm.tv_usec - start_tm.tv_usec; in main()
|
D | sg_read.c | 437 struct timeval start_tm, end_tm; in main() local 744 start_tm.tv_sec = 0; /* just in case start set condition not met */ in main() 745 start_tm.tv_usec = 0; in main() 754 gettimeofday(&start_tm, NULL); in main() 849 if (start_tm.tv_sec || start_tm.tv_usec) { in main() 853 res_tm.tv_sec = end_tm.tv_sec - start_tm.tv_sec; in main() 854 res_tm.tv_usec = end_tm.tv_usec - start_tm.tv_usec; in main()
|
D | sgm_dd.c | 125 static struct timeval start_tm; variable 172 if (start_tm_valid && (start_tm.tv_sec || start_tm.tv_usec)) { in calc_duration_throughput() 174 res_tm.tv_sec = end_tm.tv_sec - start_tm.tv_sec; in calc_duration_throughput() 175 res_tm.tv_usec = end_tm.tv_usec - start_tm.tv_usec; in calc_duration_throughput() 1318 start_tm.tv_sec = 0; in main() 1319 start_tm.tv_usec = 0; in main() 1320 gettimeofday(&start_tm, NULL); in main()
|
D | sg_xcopy.c | 180 static struct timeval start_tm; variable 1137 if (start_tm_valid && (start_tm.tv_sec || start_tm.tv_usec)) { in calc_duration_throughput() 1140 res_tm.tv_sec = end_tm.tv_sec - start_tm.tv_sec; in calc_duration_throughput() 1141 res_tm.tv_usec = end_tm.tv_usec - start_tm.tv_usec; in calc_duration_throughput() 1887 start_tm.tv_sec = 0; in main() 1888 start_tm.tv_usec = 0; in main() 1889 gettimeofday(&start_tm, NULL); in main()
|
D | sgp_dd.c | 272 static struct timeval start_tm; variable 288 res_tm.tv_sec = end_tm.tv_sec - start_tm.tv_sec; in calc_duration_throughput() 289 res_tm.tv_usec = end_tm.tv_usec - start_tm.tv_usec; in calc_duration_throughput() 1890 start_tm.tv_sec = 0; in main() 1891 start_tm.tv_usec = 0; in main() 1892 gettimeofday(&start_tm, NULL); in main() 1938 if (do_time && (start_tm.tv_sec || start_tm.tv_usec)) in main()
|
D | sg_dd.c | 174 static struct timeval start_tm; variable 1238 if (start_tm_valid && (start_tm.tv_sec || start_tm.tv_usec)) { in calc_duration_throughput() 1241 res_tm.tv_sec = end_tm.tv_sec - start_tm.tv_sec; in calc_duration_throughput() 1242 res_tm.tv_usec = end_tm.tv_usec - start_tm.tv_usec; in calc_duration_throughput() 2349 start_tm.tv_sec = 0; in main() 2350 start_tm.tv_usec = 0; in main() 2351 gettimeofday(&start_tm, NULL); in main()
|
/external/sg3_utils/testing/ |
D | tst_sg_lib.c | 636 struct timespec start_tm, end_tm; in main() local 639 if (0 != clock_gettime(CLOCK_MONOTONIC, &start_tm)) { in main() 665 elapsed_msecs = (end_tm.tv_sec - start_tm.tv_sec) * 1000; in main() 666 elapsed_msecs += (end_tm.tv_nsec - start_tm.tv_nsec) / 1000000; in main() 678 if (0 != clock_gettime(CLOCK_MONOTONIC, &start_tm)) { in main() 710 elapsed_msecs = (end_tm.tv_sec - start_tm.tv_sec) * 1000; in main() 711 elapsed_msecs += (end_tm.tv_nsec - start_tm.tv_nsec) / 1000000; in main()
|
D | sg_tst_async.cpp | 1746 struct timespec start_tm, end_tm; in main() local 2140 start_tm.tv_sec = 0; in main() 2141 start_tm.tv_nsec = 0; in main() 2142 if (clock_gettime(CLOCK_MONOTONIC, &start_tm) < 0) in main() 2169 res_tm.tv_sec = end_tm.tv_sec - start_tm.tv_sec; in main() 2170 res_tm.tv_nsec = end_tm.tv_nsec - start_tm.tv_nsec; in main()
|
D | sg_tst_ioctl.c | 1030 struct timespec start_tm, fin_tm, res_tm; in main() local 1046 if (0 != clock_gettime(CLOCK_MONOTONIC, &start_tm)) { in main() 1130 res_tm.tv_sec = fin_tm.tv_sec - start_tm.tv_sec; in main() 1131 res_tm.tv_nsec = fin_tm.tv_nsec - start_tm.tv_nsec; in main()
|
D | sg_mrq_dd.cpp | 425 static struct timeval start_tm; variable 990 res_tm.tv_sec = end_tm.tv_sec - start_tm.tv_sec; in calc_duration_throughput() 991 res_tm.tv_usec = end_tm.tv_usec - start_tm.tv_usec; in calc_duration_throughput() 4533 start_tm.tv_sec = 0; in main() 4534 start_tm.tv_usec = 0; in main() 4535 gettimeofday(&start_tm, NULL); in main() 4572 if (do_time && (start_tm.tv_sec || start_tm.tv_usec)) in main()
|
D | sgh_dd.cpp | 420 static struct timeval start_tm; variable 983 res_tm.tv_sec = end_tm.tv_sec - start_tm.tv_sec; in calc_duration_throughput() 984 res_tm.tv_usec = end_tm.tv_usec - start_tm.tv_usec; in calc_duration_throughput() 4933 start_tm.tv_sec = 0; in main() 4934 start_tm.tv_usec = 0; in main() 4935 gettimeofday(&start_tm, NULL); in main() 4980 if (do_time && (start_tm.tv_sec || start_tm.tv_usec)) in main()
|
/external/sg3_utils/examples/ |
D | sgq_dd.c | 758 struct timeval start_tm, end_tm; in main() local 1054 start_tm.tv_sec = 0; in main() 1055 start_tm.tv_usec = 0; in main() 1056 gettimeofday(&start_tm, NULL); in main() 1179 if ((do_time) && (start_tm.tv_sec || start_tm.tv_usec)) { in main() 1184 res_tm.tv_sec = end_tm.tv_sec - start_tm.tv_sec; in main() 1185 res_tm.tv_usec = end_tm.tv_usec - start_tm.tv_usec; in main()
|
/external/ltp/testcases/kernel/fs/scsi/ltpscsi/ |
D | scsimain.c | 2221 struct timeval start_tm, end_tm; in do_scsi_device_read_write() local 2478 start_tm.tv_sec = 0; in do_scsi_device_read_write() 2479 start_tm.tv_usec = 0; in do_scsi_device_read_write() 2480 gettimeofday(&start_tm, NULL); in do_scsi_device_read_write() 2605 if ((do_time) && (start_tm.tv_sec || start_tm.tv_usec)) { in do_scsi_device_read_write() 2610 res_tm.tv_sec = end_tm.tv_sec - start_tm.tv_sec; in do_scsi_device_read_write() 2611 res_tm.tv_usec = end_tm.tv_usec - start_tm.tv_usec; in do_scsi_device_read_write() 3852 struct timeval start_tm, end_tm; in do_scsi_read_buffer() local 3975 start_tm.tv_sec = 0; in do_scsi_read_buffer() 3976 start_tm.tv_usec = 0; in do_scsi_read_buffer() [all …]
|