/dports/devel/cpp-hocon/cpp-hocon-0.3.0/lib/tests/ |
H A D | config_test.cc | 122 REQUIRE(1 == conf->get_duration("durations.secondAsNumber", time_unit::SECONDS)); 127 REQUIRE(1 == conf->get_duration("durations.second", time_unit::SECONDS)); 129 REQUIRE(1 == conf->get_duration("durations.millis", time_unit::MILLISECONDS)); 130 REQUIRE(1000 == conf->get_duration("durations.second", time_unit::MILLISECONDS)); 131 REQUIRE(60 == conf->get_duration("durations.minute", time_unit::SECONDS)); 132 REQUIRE(60 == conf->get_duration("durations.hour", time_unit::MINUTES)); 133 REQUIRE(24 == conf->get_duration("durations.day", time_unit::HOURS)); 134 REQUIRE(-4 == conf->get_duration("durations.minusSeconds", time_unit::SECONDS)); 140 REQUIRE(0 == conf->get_duration("durations.minute", time_unit::HOURS)); 144 REQUIRE(106751 == conf->get_duration("durations.largeNanos", time_unit::DAYS)); [all …]
|
/dports/devel/mdds/mdds-1.7.0/misc/ |
H A D | matrix_perf.cpp | 28 double get_duration() const { return get_current_time() - m_start_time; } in get_duration() function in stack_watch 144 …cout << "construction filled zero: " << sw.get_duration() << " sec (mixed_type_matrix, filled)" <<… in perf_construction() 150 …cout << "construction filled zero: " << sw.get_duration() << " sec (mixed_type_matrix, sparse)" <<… in perf_construction() 156 … cout << "construction filled zero: " << sw.get_duration() << " sec (multi_type_matrix)" << endl; in perf_construction() 174 … cout << "construction filled empty: " << sw.get_duration() << " sec (multi_type_matrix)" << endl; in perf_construction() 187 …cout << "insertion via loop: " << sw.get_duration() << " sec (mixed_type_matrix, filled zero)" << … in perf_insertion() 194 …cout << "insertion via loop: " << sw.get_duration() << " sec (multi_type_matrix, init empty)" << e… in perf_insertion() 201 …cout << "insertion via loop: " << sw.get_duration() << " sec (multi_type_matrix, init zero)" << en… in perf_insertion() 447 …cout << "init with value: " << sw.get_duration() << " sec (multi_type_matrix, manual loop)" << end… in perf_init_with_value() 453 …cout << "init with value: " << sw.get_duration() << " sec (multi_type_matrix, constructor)" << end… in perf_init_with_value() [all …]
|
/dports/dns/samba-nsupdate/bind-9.16.5/lib/isccfg/ |
H A D | kaspconf.c | 51 get_duration(const cfg_obj_t **maps, const char *option, uint32_t dfl) { in get_duration() function 213 dns_kasp_setsigrefresh(kasp, get_duration(maps, "signatures-refresh", in cfg_kasp_fromconfig() 218 kasp, get_duration(maps, "signatures-validity-dnskey", in cfg_kasp_fromconfig() 223 kasp, get_duration(maps, "dnskey-ttl", DNS_KASP_KEY_TTL)); in cfg_kasp_fromconfig() 224 dns_kasp_setpublishsafety(kasp, get_duration(maps, "publish-safety", in cfg_kasp_fromconfig() 226 dns_kasp_setretiresafety(kasp, get_duration(maps, "retire-safety", in cfg_kasp_fromconfig() 250 kasp, get_duration(maps, "max-zone-ttl", DNS_KASP_ZONE_MAXTTL)); in cfg_kasp_fromconfig() 252 kasp, get_duration(maps, "zone-propagation-delay", in cfg_kasp_fromconfig() 257 get_duration(maps, "parent-ds-ttl", DNS_KASP_DS_TTL)); in cfg_kasp_fromconfig() 259 kasp, get_duration(maps, "parent-propagation-delay", in cfg_kasp_fromconfig() [all …]
|
/dports/dns/bind9-devel/bind9-e112afa15668bd3b1baed59df2d21e01b46da15e/lib/isccfg/ |
H A D | kaspconf.c | 55 get_duration(const cfg_obj_t **maps, const char *option, uint32_t dfl) { in get_duration() function 299 dns_kasp_setsigrefresh(kasp, get_duration(maps, "signatures-refresh", in cfg_kasp_fromconfig() 304 kasp, get_duration(maps, "signatures-validity-dnskey", in cfg_kasp_fromconfig() 309 kasp, get_duration(maps, "dnskey-ttl", DNS_KASP_KEY_TTL)); in cfg_kasp_fromconfig() 310 dns_kasp_setpublishsafety(kasp, get_duration(maps, "publish-safety", in cfg_kasp_fromconfig() 312 dns_kasp_setretiresafety(kasp, get_duration(maps, "retire-safety", in cfg_kasp_fromconfig() 315 kasp, get_duration(maps, "purge-keys", DNS_KASP_PURGE_KEYS)); in cfg_kasp_fromconfig() 356 kasp, get_duration(maps, "max-zone-ttl", DNS_KASP_ZONE_MAXTTL)); in cfg_kasp_fromconfig() 358 kasp, get_duration(maps, "zone-propagation-delay", in cfg_kasp_fromconfig() 363 get_duration(maps, "parent-ds-ttl", DNS_KASP_DS_TTL)); in cfg_kasp_fromconfig() [all …]
|
/dports/dns/bind-tools/bind-9.16.27/lib/isccfg/ |
H A D | kaspconf.c | 57 get_duration(const cfg_obj_t **maps, const char *option, uint32_t dfl) { in get_duration() function 306 dns_kasp_setsigrefresh(kasp, get_duration(maps, "signatures-refresh", in cfg_kasp_fromconfig() 311 kasp, get_duration(maps, "signatures-validity-dnskey", in cfg_kasp_fromconfig() 316 kasp, get_duration(maps, "dnskey-ttl", DNS_KASP_KEY_TTL)); in cfg_kasp_fromconfig() 317 dns_kasp_setpublishsafety(kasp, get_duration(maps, "publish-safety", in cfg_kasp_fromconfig() 319 dns_kasp_setretiresafety(kasp, get_duration(maps, "retire-safety", in cfg_kasp_fromconfig() 322 kasp, get_duration(maps, "purge-keys", DNS_KASP_PURGE_KEYS)); in cfg_kasp_fromconfig() 363 kasp, get_duration(maps, "max-zone-ttl", DNS_KASP_ZONE_MAXTTL)); in cfg_kasp_fromconfig() 365 kasp, get_duration(maps, "zone-propagation-delay", in cfg_kasp_fromconfig() 370 get_duration(maps, "parent-ds-ttl", DNS_KASP_DS_TTL)); in cfg_kasp_fromconfig() [all …]
|
/dports/dns/bind916/bind-9.16.27/lib/isccfg/ |
H A D | kaspconf.c | 57 get_duration(const cfg_obj_t **maps, const char *option, uint32_t dfl) { in get_duration() function 306 dns_kasp_setsigrefresh(kasp, get_duration(maps, "signatures-refresh", in cfg_kasp_fromconfig() 311 kasp, get_duration(maps, "signatures-validity-dnskey", in cfg_kasp_fromconfig() 316 kasp, get_duration(maps, "dnskey-ttl", DNS_KASP_KEY_TTL)); in cfg_kasp_fromconfig() 317 dns_kasp_setpublishsafety(kasp, get_duration(maps, "publish-safety", in cfg_kasp_fromconfig() 319 dns_kasp_setretiresafety(kasp, get_duration(maps, "retire-safety", in cfg_kasp_fromconfig() 322 kasp, get_duration(maps, "purge-keys", DNS_KASP_PURGE_KEYS)); in cfg_kasp_fromconfig() 363 kasp, get_duration(maps, "max-zone-ttl", DNS_KASP_ZONE_MAXTTL)); in cfg_kasp_fromconfig() 365 kasp, get_duration(maps, "zone-propagation-delay", in cfg_kasp_fromconfig() 370 get_duration(maps, "parent-ds-ttl", DNS_KASP_DS_TTL)); in cfg_kasp_fromconfig() [all …]
|
/dports/games/cataclysm-dda-tiles/Cataclysm-DDA-0.F/tests/ |
H A D | effect_test.cpp | 47 CHECK( dur == effect_obj.get_duration() ); in check_effect_init() 80 REQUIRE( eff_debugged.get_duration() == 1_turns ); 85 CHECK( to_turns<int>( eff_debugged.get_duration() ) == -1 ); 90 CHECK( eff_debugged.get_duration() == 1_hours ); 219 REQUIRE( to_turns<int>( eff_debugged.get_duration() ) == 2 ); 224 CHECK( to_turns<int>( eff_debugged.get_duration() ) == 1 ); 231 CHECK( to_turns<int>( eff_debugged.get_duration() ) == 0 ); 238 CHECK( to_turns<int>( eff_debugged.get_duration() ) == 0 ); 251 REQUIRE( to_turns<int>( eff_debugged.get_duration() ) == 2 ); 256 CHECK( to_turns<int>( eff_debugged.get_duration() ) == 2 ); [all …]
|
/dports/games/cataclysm-dda/Cataclysm-DDA-0.F/tests/ |
H A D | effect_test.cpp | 47 CHECK( dur == effect_obj.get_duration() ); in check_effect_init() 80 REQUIRE( eff_debugged.get_duration() == 1_turns ); 85 CHECK( to_turns<int>( eff_debugged.get_duration() ) == -1 ); 90 CHECK( eff_debugged.get_duration() == 1_hours ); 219 REQUIRE( to_turns<int>( eff_debugged.get_duration() ) == 2 ); 224 CHECK( to_turns<int>( eff_debugged.get_duration() ) == 1 ); 231 CHECK( to_turns<int>( eff_debugged.get_duration() ) == 0 ); 238 CHECK( to_turns<int>( eff_debugged.get_duration() ) == 0 ); 251 REQUIRE( to_turns<int>( eff_debugged.get_duration() ) == 2 ); 256 CHECK( to_turns<int>( eff_debugged.get_duration() ) == 2 ); [all …]
|
/dports/deskutils/taskwarrior/taskwarrior-2.6.1/test/ |
H A D | variant_subtract.t.cpp | 98 t.is (v15.get_duration (), 1299998800, "1300000000 - 1200 --> 1299998800"); in main() 177 t.is (v44.get_duration (), 0, "1234567890 - 1234567890 --> 0"); in main() 187 t.is (v50.get_duration (), 1199, "1200 - true --> 1199"); in main() 192 t.is (v51.get_duration (), 1158, "1200 - 42 --> 1158"); in main() 197 t.is (v52.get_duration (), 1197, "1200 - 3.14 --> 1197"); in main() 210 t.is (v55.get_duration (), 0, "1200 - 1200 --> 0"); in main()
|
H A D | variant_multiply.t.cpp | 72 t.is (v05.get_duration (), 1200, "true * 1200 --> 1200"); in main() 101 t.is (v15.get_duration (), 50400, "42 * 1200 --> 50400"); in main() 129 t.is (v25.get_duration (), 3768, "3.14 * 1200 --> 3768"); in main() 185 t.is (v50.get_duration (), 1200, "1200 * true --> 1200"); in main() 190 t.is (v51.get_duration (), 50400, "1200 * 42 --> 50400"); in main() 195 t.is (v52.get_duration (), 3768, "1200 * 3.14 --> 3768"); in main()
|
H A D | variant_add.t.cpp | 73 t.is (v05.get_duration (), "1201", "true + 1200 --> 1201"); in main() 103 t.is (v15.get_duration (), 1242, "42 + 1200 --> 1242"); in main() 133 t.is (v25.get_duration (), 1203, "3.14 + 1200 --> 1203"); in main() 209 t.is (v50.get_duration (), 1201, "1200 + true --> 1201"); in main() 214 t.is (v51.get_duration (), 1242, "1200 + 42 --> 1242"); in main() 219 t.is (v52.get_duration (), 1203, "1200 + 3.14 --> 1203"); in main() 234 t.is (v55.get_duration (), 2400, "1200 + 1200 --> 2400"); in main()
|
H A D | variant_cast.t.cpp | 72 t.is (v05.get_duration (), 1, "cast boolean --> duration"); in main() 103 t.is (v15.get_duration (), 42, "cast integer --> duration"); in main() 134 t.ok (v25.get_duration () == 3, "cast real --> duration"); in main() 170 t.is (v35.get_duration (), 3628800, "cast string --> duration"); in main() 175 t.is (v35b.get_duration (), 3628800, "cast string --> duration"); in main() 214 t.ok (v45.get_duration () <= 1234567890 - now, "cast date --> duration"); in main() 216 t.ok (v45.get_duration () > 1234567890 - now - 600, "cast date --> duration"); in main() 248 t.is (v55.get_duration (), 12345, "cast duration --> duration"); in main()
|
/dports/misc/quantum++/qpp-3.0/unit_tests/tests/classes/ |
H A D | timer.cpp | 23 auto duration_t1_s = t1.get_duration(); // in seconds in TEST() 26 auto duration_t1_ms = t1.get_duration<milliseconds>(); // in milli seconds in TEST() 34 auto duration_t2_micros = t2.get_duration(); in TEST()
|
/dports/multimedia/librespot/librespot-0.1.3/cargo-crates/gstreamer-0.15.7/src/ |
H A D | buffer_serde.rs | 27 buffer.serialize_field("duration", &self.get_duration())?; in serialize() 164 assert_eq!(buffer.get_duration(), 5.into()); in test_deserialize() 187 assert_eq!(buffer.get_duration(), 5.into()); in test_deserialize() 216 assert_eq!(buffer_de.get_duration(), buffer.get_duration()); in test_serde_roundtrip()
|
/dports/multimedia/termplay/termplay-2.0.6/cargo-crates/gstreamer-0.15.0/src/ |
H A D | buffer_serde.rs | 27 buffer.serialize_field("duration", &self.get_duration())?; in serialize() 164 assert_eq!(buffer.get_duration(), 5.into()); in test_deserialize() 187 assert_eq!(buffer.get_duration(), 5.into()); in test_deserialize() 216 assert_eq!(buffer_de.get_duration(), buffer.get_duration()); in test_serde_roundtrip()
|
/dports/net-im/fractal/fractal-4.4.0/vendor/gstreamer/src/ |
H A D | buffer_serde.rs | 27 buffer.serialize_field("duration", &self.get_duration())?; in serialize() 164 assert_eq!(buffer.get_duration(), 5.into()); in test_deserialize() 187 assert_eq!(buffer.get_duration(), 5.into()); in test_deserialize() 216 assert_eq!(buffer_de.get_duration(), buffer.get_duration()); in test_serde_roundtrip()
|
/dports/emulators/tilem/tilem-2.0/emu/ |
H A D | timers.c | 40 static inline dword get_duration(int fvalue, int nticks) in get_duration() function 97 return get_duration(tmr->frequency, tmr->loopvalue); in get_normal_duration() 99 return get_duration(tmr->frequency, 256); in get_normal_duration() 104 return get_duration(tmr->frequency, 256); in get_overflow_duration()
|
/dports/multimedia/mkvtoolnix/mkvtoolnix-65.0.0/src/common/ |
H A D | track_statistics.h | 68 std::optional<int64_t> get_duration() const { in get_duration() function 73 auto duration = get_duration(); in get_bits_per_second() 85 auto duration = get_duration(); in to_string()
|
/dports/devel/hyperscan/boost_1_75_0/boost/chrono/io/ |
H A D | time_point_get.hpp | 152 s = get_duration(s, end, ios, err, d); in get() 243 … iter_type get_duration(iter_type i, iter_type e, std::ios_base& is, std::ios_base::iostate& err, in get_duration() function in boost::chrono::time_point_get 249 return get_duration(facet, i, e, is, err, d); in get_duration() 254 return get_duration(facet, i, e, is, err, d); in get_duration() 259 …iter_type get_duration(duration_get<CharT> const& facet, iter_type s, iter_type end, std::ios_base… in get_duration() function in boost::chrono::time_point_get
|
/dports/science/py-scipy/scipy-1.7.1/scipy/_lib/boost/boost/chrono/io/ |
H A D | time_point_get.hpp | 152 s = get_duration(s, end, ios, err, d); in get() 243 … iter_type get_duration(iter_type i, iter_type e, std::ios_base& is, std::ios_base::iostate& err, in get_duration() function in boost::chrono::time_point_get 249 return get_duration(facet, i, e, is, err, d); in get_duration() 254 return get_duration(facet, i, e, is, err, d); in get_duration() 259 …iter_type get_duration(duration_get<CharT> const& facet, iter_type s, iter_type end, std::ios_base… in get_duration() function in boost::chrono::time_point_get
|
/dports/devel/R-cran-BH/BH/inst/include/boost/chrono/io/ |
H A D | time_point_get.hpp | 152 s = get_duration(s, end, ios, err, d); in get() 243 … iter_type get_duration(iter_type i, iter_type e, std::ios_base& is, std::ios_base::iostate& err, in get_duration() function in boost::chrono::time_point_get 249 return get_duration(facet, i, e, is, err, d); in get_duration() 254 return get_duration(facet, i, e, is, err, d); in get_duration() 259 …iter_type get_duration(duration_get<CharT> const& facet, iter_type s, iter_type end, std::ios_base… in get_duration() function in boost::chrono::time_point_get
|
/dports/databases/percona57-pam-for-mysql/boost_1_59_0/boost/chrono/io/ |
H A D | time_point_get.hpp | 152 s = get_duration(s, end, ios, err, d); in get() 243 … iter_type get_duration(iter_type i, iter_type e, std::ios_base& is, std::ios_base::iostate& err, in get_duration() function in boost::chrono::time_point_get 249 return get_duration(facet, i, e, is, err, d); in get_duration() 254 return get_duration(facet, i, e, is, err, d); in get_duration() 259 …iter_type get_duration(duration_get<CharT> const& facet, iter_type s, iter_type end, std::ios_base… in get_duration() function in boost::chrono::time_point_get
|
/dports/math/stanmath/math-4.2.0/lib/boost_1.75.0/boost/chrono/io/ |
H A D | time_point_get.hpp | 152 s = get_duration(s, end, ios, err, d); in get() 243 … iter_type get_duration(iter_type i, iter_type e, std::ios_base& is, std::ios_base::iostate& err, in get_duration() function in boost::chrono::time_point_get 249 return get_duration(facet, i, e, is, err, d); in get_duration() 254 return get_duration(facet, i, e, is, err, d); in get_duration() 259 …iter_type get_duration(duration_get<CharT> const& facet, iter_type s, iter_type end, std::ios_base… in get_duration() function in boost::chrono::time_point_get
|
/dports/databases/mysqlwsrep57-server/boost_1_59_0/boost/chrono/io/ |
H A D | time_point_get.hpp | 152 s = get_duration(s, end, ios, err, d); in get() 243 … iter_type get_duration(iter_type i, iter_type e, std::ios_base& is, std::ios_base::iostate& err, in get_duration() function in boost::chrono::time_point_get 249 return get_duration(facet, i, e, is, err, d); in get_duration() 254 return get_duration(facet, i, e, is, err, d); in get_duration() 259 …iter_type get_duration(duration_get<CharT> const& facet, iter_type s, iter_type end, std::ios_base… in get_duration() function in boost::chrono::time_point_get
|
/dports/databases/xtrabackup/boost_1_59_0/boost/chrono/io/ |
H A D | time_point_get.hpp | 152 s = get_duration(s, end, ios, err, d); in get() 243 … iter_type get_duration(iter_type i, iter_type e, std::ios_base& is, std::ios_base::iostate& err, in get_duration() function in boost::chrono::time_point_get 249 return get_duration(facet, i, e, is, err, d); in get_duration() 254 return get_duration(facet, i, e, is, err, d); in get_duration() 259 …iter_type get_duration(duration_get<CharT> const& facet, iter_type s, iter_type end, std::ios_base… in get_duration() function in boost::chrono::time_point_get
|