/dports/benchmarks/iperf/iperf-2.1.4/compat/ |
H A D | delay.c | 205 tv0->tv_sec++; in timespec_add_ulong() 206 tv0->tv_nsec -= BILLION; in timespec_add_ulong() 232 tv0->tv_sec++; in timespec_add_double() 233 tv0->tv_nsec -= BILLION; in timespec_add_double() 251 tv0->tv_nsec -= BILLION; in timespec_add() 252 tv0->tv_sec++; in timespec_add() 258 ((tv0.tv_sec == tv1.tv_sec) && (tv1.tv_nsec > tv0.tv_nsec))) { in timespec_greaterthan() 323 tv0->tv_usec += value; in timeval_add_ulong() 325 tv0->tv_sec++; in timeval_add_ulong() 326 tv0->tv_usec -= MILLION; in timeval_add_ulong() [all …]
|
/dports/games/openage/openage-0.3.0-1262-ga554ab49/libopenage/util/ |
H A D | enum_test.cpp | 16 testenum tv0 = testenum::foo; in enum_() local 17 tv0 == testenum::foo or TESTFAIL; in enum_() 18 tv0 != testenum::bar or TESTFAIL; in enum_() 21 tv0 == tv1 and TESTFAIL; in enum_() 24 tv0 == tv1 or TESTFAIL; in enum_() 25 tv0 != tv1 and TESTFAIL; in enum_() 27 TESTEQUALS(tv0->get_stuff(), std::string("foooooooooooooooooo")); in enum_() 28 TESTEQUALS(tv0->stuff, std::string("foooooooooooooooooo")); in enum_() 34 tv2 != tv0 or TESTFAIL; in enum_() 39 fstr << tv0; in enum_()
|
/dports/audio/libmpdclient/libmpdclient-2.20/src/ |
H A D | sync.c | 107 if (tv0 != NULL) { in mpd_sync_send_command_v() 108 tv = *tv0; in mpd_sync_send_command_v() 151 mpd_sync_flush(struct mpd_async *async, const struct timeval *tv0) in mpd_sync_flush() argument 155 if (tv0 != NULL) { in mpd_sync_flush() 156 tv = *tv0; in mpd_sync_flush() 176 mpd_sync_recv_line(struct mpd_async *async, const struct timeval *tv0) in mpd_sync_recv_line() argument 181 if (tv0 != NULL) { in mpd_sync_recv_line() 182 tv = *tv0; in mpd_sync_recv_line() 198 mpd_sync_recv_raw(struct mpd_async *async, const struct timeval *tv0, in mpd_sync_recv_raw() argument 203 if (tv0 != NULL) { in mpd_sync_recv_raw() [all …]
|
/dports/net/freeswitch/freeswitch-1.10.3.-release/libs/sofia-sip/libsofia-sip-ua/su/ |
H A D | torture_su_time.c | 59 su_time_t tv0; variable 63 *tv = tv0; in su_time0() 73 return *retval = (uint64_t)tv0.tv_sec * 1000000000U + tv0.tv_usec * 1000U; in su_nanotime0() 91 tv0.tv_sec = ntp_hi; in test1() 92 tv0.tv_usec = 500000UL; in test1() 106 TEST(su_ntp_fraq(tv0), ntp_mw); in test1() 108 tv0.tv_usec = 0; in test1() 148 tv0.tv_sec = 268435455; in test2() 149 tv0.tv_usec = 98765; in test2() 151 tl = tv0.tv_sec * granularity + tv0.tv_usec * (granularity / 1000000); in test2() [all …]
|
/dports/net/sofia-sip/sofia-sip-1.13.4/libsofia-sip-ua/su/ |
H A D | torture_su_time.c | 59 su_time_t tv0; variable 63 *tv = tv0; in su_time0() 73 return *retval = (uint64_t)tv0.tv_sec * 1000000000U + tv0.tv_usec * 1000U; in su_nanotime0() 91 tv0.tv_sec = ntp_hi; in test1() 92 tv0.tv_usec = 500000UL; in test1() 106 TEST(su_ntp_fraq(tv0), ntp_mw); in test1() 108 tv0.tv_usec = 0; in test1() 148 tv0.tv_sec = 268435455; in test2() 149 tv0.tv_usec = 98765; in test2() 151 tl = tv0.tv_sec * granularity + tv0.tv_usec * (granularity / 1000000); in test2() [all …]
|
/dports/benchmarks/iperf/iperf-2.1.4/src/ |
H A D | checkpdfs.c | 74 static double timespec_diff(struct timespec tv1, struct timespec tv0); 76 static double timeval_diff (struct timeval tv1, struct timeval tv0); 197 static double timespec_diff (struct timespec tv1, struct timespec tv0) { in timespec_diff() argument 199 if (tv1.tv_nsec < tv0.tv_nsec) { in timespec_diff() 203 result = (double) (((tv1.tv_sec - tv0.tv_sec) * BILLION) + (tv1.tv_nsec - tv0.tv_nsec)); in timespec_diff() 208 static double timeval_diff (struct timeval tv1, struct timeval tv0) { in timeval_diff() argument 210 if (tv1.tv_usec < tv0.tv_usec) { in timeval_diff() 214 result = (double) (((tv1.tv_sec - tv0.tv_sec) * MILLION) + (tv1.tv_usec - tv0.tv_usec)); in timeval_diff()
|
/dports/devel/libassa/libassa-3.5.1/tests/ |
H A D | timeval_test.cpp | 142 TimeVal tv0(TimeVal::gettimeofday ()); // today's date in process_events() local 143 DL((APP,"Time now: %s -> %5.2f\n", tv0.fmtString().c_str (), double(tv0))); in process_events() 202 DL((APP, "GMT: %s\n", tv0.fmtString ().c_str ())); in process_events() 203 tv0.tz (TimeVal::loc); in process_events() 204 DL((APP, "EDT: %s\n", tv0.fmtString ().c_str ())); in process_events() 210 tv0.tz (TimeVal::gmt); in process_events() 211 DL((APP,"GMT: %s\n", tv0.fmtString ("%c").c_str ())); in process_events() 213 tv0.tz (TimeVal::loc); in process_events() 214 DL((APP,"EDT: %s\n", tv0.fmtString ().c_str ())); in process_events()
|
/dports/emulators/quasi88/quasi88-0.6.4/src/X11/ |
H A D | wait.c | 330 static struct timeval tv0; in display_fps() local 336 if (tv0.tv_sec == 0 && in display_fps() 337 tv0.tv_usec == 0) { in display_fps() 338 gettimeofday(&tv0, 0); in display_fps() 354 dt = (double)(tv1.tv_sec - tv0.tv_sec); in display_fps() 355 dt += (double)(tv1.tv_usec - tv0.tv_usec) / 1000000.0; in display_fps() 363 tv0 = tv1; in display_fps() 370 tv0.tv_sec = 0; in display_fps() 371 tv0.tv_usec = 0; in display_fps()
|
/dports/science/openmx/openmx3.8/source/ |
H A D | cellopt.c | 52 double tv0[4][4],Cell_Volume0; in CellCub() local 106 tv0[i][j] = tv[i][j]; in CellCub() 116 tv[i][j] += 0.01*tv0[i][j]; in CellCub() 304 tv0[i][j] = tv[i][j]; in CellTet() 321 tv[i][j] = 1.02*tv0[i][j]; in CellTet() 327 tv[i][j] = tv0[i][j]; in CellTet() 338 tv[i][j] = tv0[i][j]; in CellTet() 344 tv[i][j] = 1.02*tv0[i][j]; in CellTet() 373 tv[i][j] = tv0[i][j]; in CellTet() 384 tv[i][j] = tv0[i][j]; in CellTet() [all …]
|
/dports/astro/gnuastro/gnuastro-0.16/bootstrapped/tests/ |
H A D | test-select.h | 193 struct timeval tv0; in do_select_nowait() local 194 tv0.tv_sec = 0; in do_select_nowait() 195 tv0.tv_usec = 0; in do_select_nowait() 196 return do_select (fd, ev, &tv0, my_select); in do_select_nowait() 230 struct timeval tv0; in do_select_bad_nfd_nowait() local 231 tv0.tv_sec = 0; in do_select_bad_nfd_nowait() 232 tv0.tv_usec = 0; in do_select_bad_nfd_nowait() 234 return my_select (nfd, NULL, NULL, NULL, &tv0); in do_select_bad_nfd_nowait() 278 struct timeval tv0; in do_select_bad_fd_nowait() local 279 tv0.tv_sec = 0; in do_select_bad_fd_nowait() [all …]
|
/dports/devel/gettext-tools/gettext-0.21/gettext-tools/gnulib-tests/ |
H A D | test-select.h | 193 struct timeval tv0; in do_select_nowait() local 194 tv0.tv_sec = 0; in do_select_nowait() 195 tv0.tv_usec = 0; in do_select_nowait() 196 return do_select (fd, ev, &tv0, my_select); in do_select_nowait() 230 struct timeval tv0; in do_select_bad_nfd_nowait() local 231 tv0.tv_sec = 0; in do_select_bad_nfd_nowait() 232 tv0.tv_usec = 0; in do_select_bad_nfd_nowait() 234 return my_select (nfd, NULL, NULL, NULL, &tv0); in do_select_bad_nfd_nowait() 278 struct timeval tv0; in do_select_bad_fd_nowait() local 279 tv0.tv_sec = 0; in do_select_bad_fd_nowait() [all …]
|
/dports/security/libgsasl/gsasl-1.10.0/lib/gltests/ |
H A D | test-select.h | 193 struct timeval tv0; in do_select_nowait() local 194 tv0.tv_sec = 0; in do_select_nowait() 195 tv0.tv_usec = 0; in do_select_nowait() 196 return do_select (fd, ev, &tv0, my_select); in do_select_nowait() 230 struct timeval tv0; in do_select_bad_nfd_nowait() local 231 tv0.tv_sec = 0; in do_select_bad_nfd_nowait() 232 tv0.tv_usec = 0; in do_select_bad_nfd_nowait() 234 return my_select (nfd, NULL, NULL, NULL, &tv0); in do_select_bad_nfd_nowait() 278 struct timeval tv0; in do_select_bad_fd_nowait() local 279 tv0.tv_sec = 0; in do_select_bad_fd_nowait() [all …]
|
/dports/dns/libidn/libidn-1.35/gltests/ |
H A D | test-select.h | 196 struct timeval tv0; in do_select_nowait() local 197 tv0.tv_sec = 0; in do_select_nowait() 198 tv0.tv_usec = 0; in do_select_nowait() 199 return do_select (fd, ev, &tv0, my_select); in do_select_nowait() 233 struct timeval tv0; in do_select_bad_nfd_nowait() local 234 tv0.tv_sec = 0; in do_select_bad_nfd_nowait() 235 tv0.tv_usec = 0; in do_select_bad_nfd_nowait() 237 return my_select (nfd, NULL, NULL, NULL, &tv0); in do_select_bad_nfd_nowait() 279 struct timeval tv0; in do_select_bad_fd_nowait() local 280 tv0.tv_sec = 0; in do_select_bad_fd_nowait() [all …]
|
/dports/security/libprelude/libprelude-1.2.6/libmissing/tests/ |
H A D | test-select.h | 196 struct timeval tv0; in do_select_nowait() local 197 tv0.tv_sec = 0; in do_select_nowait() 198 tv0.tv_usec = 0; in do_select_nowait() 199 return do_select (fd, ev, &tv0, my_select); in do_select_nowait() 233 struct timeval tv0; in do_select_bad_nfd_nowait() local 234 tv0.tv_sec = 0; in do_select_bad_nfd_nowait() 235 tv0.tv_usec = 0; in do_select_bad_nfd_nowait() 237 return my_select (nfd, NULL, NULL, NULL, &tv0); in do_select_bad_nfd_nowait() 279 struct timeval tv0; in do_select_bad_fd_nowait() local 280 tv0.tv_sec = 0; in do_select_bad_fd_nowait() [all …]
|
/dports/devel/m4/m4-1.4.19/tests/ |
H A D | test-select.h | 193 struct timeval tv0; in do_select_nowait() local 194 tv0.tv_sec = 0; in do_select_nowait() 195 tv0.tv_usec = 0; in do_select_nowait() 196 return do_select (fd, ev, &tv0, my_select); in do_select_nowait() 230 struct timeval tv0; in do_select_bad_nfd_nowait() local 231 tv0.tv_sec = 0; in do_select_bad_nfd_nowait() 232 tv0.tv_usec = 0; in do_select_bad_nfd_nowait() 234 return my_select (nfd, NULL, NULL, NULL, &tv0); in do_select_bad_nfd_nowait() 278 struct timeval tv0; in do_select_bad_fd_nowait() local 279 tv0.tv_sec = 0; in do_select_bad_fd_nowait() [all …]
|
/dports/devel/gnulib/gnulib-20140202-stable/tests/ |
H A D | test-select.h | 196 struct timeval tv0; in do_select_nowait() local 197 tv0.tv_sec = 0; in do_select_nowait() 198 tv0.tv_usec = 0; in do_select_nowait() 199 return do_select (fd, ev, &tv0, my_select); in do_select_nowait() 233 struct timeval tv0; in do_select_bad_nfd_nowait() local 234 tv0.tv_sec = 0; in do_select_bad_nfd_nowait() 235 tv0.tv_usec = 0; in do_select_bad_nfd_nowait() 237 return my_select (nfd, NULL, NULL, NULL, &tv0); in do_select_bad_nfd_nowait() 279 struct timeval tv0; in do_select_bad_fd_nowait() local 280 tv0.tv_sec = 0; in do_select_bad_fd_nowait() [all …]
|
/dports/sysutils/coreutils/coreutils-8.32/gnulib-tests/ |
H A D | test-select.h | 193 struct timeval tv0; in do_select_nowait() local 194 tv0.tv_sec = 0; in do_select_nowait() 195 tv0.tv_usec = 0; in do_select_nowait() 196 return do_select (fd, ev, &tv0, my_select); in do_select_nowait() 230 struct timeval tv0; in do_select_bad_nfd_nowait() local 231 tv0.tv_sec = 0; in do_select_bad_nfd_nowait() 232 tv0.tv_usec = 0; in do_select_bad_nfd_nowait() 234 return my_select (nfd, NULL, NULL, NULL, &tv0); in do_select_bad_nfd_nowait() 278 struct timeval tv0; in do_select_bad_fd_nowait() local 279 tv0.tv_sec = 0; in do_select_bad_fd_nowait() [all …]
|
/dports/security/gsasl/gsasl-1.10.0/lib/gltests/ |
H A D | test-select.h | 193 struct timeval tv0; in do_select_nowait() local 194 tv0.tv_sec = 0; in do_select_nowait() 195 tv0.tv_usec = 0; in do_select_nowait() 196 return do_select (fd, ev, &tv0, my_select); in do_select_nowait() 230 struct timeval tv0; in do_select_bad_nfd_nowait() local 231 tv0.tv_sec = 0; in do_select_bad_nfd_nowait() 232 tv0.tv_usec = 0; in do_select_bad_nfd_nowait() 234 return my_select (nfd, NULL, NULL, NULL, &tv0); in do_select_bad_nfd_nowait() 278 struct timeval tv0; in do_select_bad_fd_nowait() local 279 tv0.tv_sec = 0; in do_select_bad_fd_nowait() [all …]
|
/dports/security/gnutls/gnutls-3.6.16/gl/tests/ |
H A D | test-select.h | 193 struct timeval tv0; in do_select_nowait() local 194 tv0.tv_sec = 0; in do_select_nowait() 195 tv0.tv_usec = 0; in do_select_nowait() 196 return do_select (fd, ev, &tv0, my_select); in do_select_nowait() 230 struct timeval tv0; in do_select_bad_nfd_nowait() local 231 tv0.tv_sec = 0; in do_select_bad_nfd_nowait() 232 tv0.tv_usec = 0; in do_select_bad_nfd_nowait() 234 return my_select (nfd, NULL, NULL, NULL, &tv0); in do_select_bad_nfd_nowait() 278 struct timeval tv0; in do_select_bad_fd_nowait() local 279 tv0.tv_sec = 0; in do_select_bad_fd_nowait() [all …]
|
/dports/devel/gettext-runtime/gettext-0.21/gettext-tools/gnulib-tests/ |
H A D | test-select.h | 193 struct timeval tv0; in do_select_nowait() local 194 tv0.tv_sec = 0; in do_select_nowait() 195 tv0.tv_usec = 0; in do_select_nowait() 196 return do_select (fd, ev, &tv0, my_select); in do_select_nowait() 230 struct timeval tv0; in do_select_bad_nfd_nowait() local 231 tv0.tv_sec = 0; in do_select_bad_nfd_nowait() 232 tv0.tv_usec = 0; in do_select_bad_nfd_nowait() 234 return my_select (nfd, NULL, NULL, NULL, &tv0); in do_select_bad_nfd_nowait() 278 struct timeval tv0; in do_select_bad_fd_nowait() local 279 tv0.tv_sec = 0; in do_select_bad_fd_nowait() [all …]
|
/dports/devel/gettext-po-mode/gettext-0.21/gettext-tools/gnulib-tests/ |
H A D | test-select.h | 193 struct timeval tv0; in do_select_nowait() local 194 tv0.tv_sec = 0; in do_select_nowait() 195 tv0.tv_usec = 0; in do_select_nowait() 196 return do_select (fd, ev, &tv0, my_select); in do_select_nowait() 230 struct timeval tv0; in do_select_bad_nfd_nowait() local 231 tv0.tv_sec = 0; in do_select_bad_nfd_nowait() 232 tv0.tv_usec = 0; in do_select_bad_nfd_nowait() 234 return my_select (nfd, NULL, NULL, NULL, &tv0); in do_select_bad_nfd_nowait() 278 struct timeval tv0; in do_select_bad_fd_nowait() local 279 tv0.tv_sec = 0; in do_select_bad_fd_nowait() [all …]
|
/dports/devel/libtextstyle/gettext-0.21/gettext-tools/gnulib-tests/ |
H A D | test-select.h | 193 struct timeval tv0; in do_select_nowait() local 194 tv0.tv_sec = 0; in do_select_nowait() 195 tv0.tv_usec = 0; in do_select_nowait() 196 return do_select (fd, ev, &tv0, my_select); in do_select_nowait() 230 struct timeval tv0; in do_select_bad_nfd_nowait() local 231 tv0.tv_sec = 0; in do_select_bad_nfd_nowait() 232 tv0.tv_usec = 0; in do_select_bad_nfd_nowait() 234 return my_select (nfd, NULL, NULL, NULL, &tv0); in do_select_bad_nfd_nowait() 278 struct timeval tv0; in do_select_bad_fd_nowait() local 279 tv0.tv_sec = 0; in do_select_bad_fd_nowait() [all …]
|
/dports/misc/gnuls/coreutils-8.30/gnulib-tests/ |
H A D | test-select.h | 193 struct timeval tv0; in do_select_nowait() local 194 tv0.tv_sec = 0; in do_select_nowait() 195 tv0.tv_usec = 0; in do_select_nowait() 196 return do_select (fd, ev, &tv0, my_select); in do_select_nowait() 230 struct timeval tv0; in do_select_bad_nfd_nowait() local 231 tv0.tv_sec = 0; in do_select_bad_nfd_nowait() 232 tv0.tv_usec = 0; in do_select_bad_nfd_nowait() 234 return my_select (nfd, NULL, NULL, NULL, &tv0); in do_select_bad_nfd_nowait() 276 struct timeval tv0; in do_select_bad_fd_nowait() local 277 tv0.tv_sec = 0; in do_select_bad_fd_nowait() [all …]
|
/dports/security/pkcs11-tools/pkcs11-tools-2.5.0/.gnulib/tests/ |
H A D | test-select.h | 193 struct timeval tv0; in do_select_nowait() local 194 tv0.tv_sec = 0; in do_select_nowait() 195 tv0.tv_usec = 0; in do_select_nowait() 196 return do_select (fd, ev, &tv0, my_select); in do_select_nowait() 230 struct timeval tv0; in do_select_bad_nfd_nowait() local 231 tv0.tv_sec = 0; in do_select_bad_nfd_nowait() 232 tv0.tv_usec = 0; in do_select_bad_nfd_nowait() 234 return my_select (nfd, NULL, NULL, NULL, &tv0); in do_select_bad_nfd_nowait() 278 struct timeval tv0; in do_select_bad_fd_nowait() local 279 tv0.tv_sec = 0; in do_select_bad_fd_nowait() [all …]
|
/dports/misc/findutils/findutils-4.8.0/gnulib-tests/ |
H A D | test-select.h | 193 struct timeval tv0; in do_select_nowait() local 194 tv0.tv_sec = 0; in do_select_nowait() 195 tv0.tv_usec = 0; in do_select_nowait() 196 return do_select (fd, ev, &tv0, my_select); in do_select_nowait() 230 struct timeval tv0; in do_select_bad_nfd_nowait() local 231 tv0.tv_sec = 0; in do_select_bad_nfd_nowait() 232 tv0.tv_usec = 0; in do_select_bad_nfd_nowait() 234 return my_select (nfd, NULL, NULL, NULL, &tv0); in do_select_bad_nfd_nowait() 278 struct timeval tv0; in do_select_bad_fd_nowait() local 279 tv0.tv_sec = 0; in do_select_bad_fd_nowait() [all …]
|