Home
last modified time | relevance | path

Searched refs:format_duration (Results 1 – 14 of 14) sorted by relevance

/third_party/nghttp2/src/
Dutil_test.cc372 CU_ASSERT("0us" == util::format_duration(std::chrono::microseconds(0))); in test_util_format_duration()
373 CU_ASSERT("999us" == util::format_duration(std::chrono::microseconds(999))); in test_util_format_duration()
374 CU_ASSERT("1.00ms" == util::format_duration(std::chrono::microseconds(1000))); in test_util_format_duration()
375 CU_ASSERT("1.09ms" == util::format_duration(std::chrono::microseconds(1090))); in test_util_format_duration()
376 CU_ASSERT("1.01ms" == util::format_duration(std::chrono::microseconds(1009))); in test_util_format_duration()
378 util::format_duration(std::chrono::microseconds(999990))); in test_util_format_duration()
380 util::format_duration(std::chrono::microseconds(1000000))); in test_util_format_duration()
382 util::format_duration(std::chrono::microseconds(1050000))); in test_util_format_duration()
384 CU_ASSERT("0us" == util::format_duration(0.)); in test_util_format_duration()
385 CU_ASSERT("999us" == util::format_duration(0.000999)); in test_util_format_duration()
[all …]
Dh2load.cc3255 << util::format_duration(duration) << ", " << rps << " req/s, " in main()
3280 << std::setw(10) << util::format_duration(ts.request.min) << " " in main()
3281 << std::setw(10) << util::format_duration(ts.request.max) << " " in main()
3282 << std::setw(10) << util::format_duration(ts.request.mean) << " " in main()
3283 << std::setw(10) << util::format_duration(ts.request.sd) << std::setw(9) in main()
3286 << util::format_duration(ts.connect.min) << " " << std::setw(10) in main()
3287 << util::format_duration(ts.connect.max) << " " << std::setw(10) in main()
3288 << util::format_duration(ts.connect.mean) << " " << std::setw(10) in main()
3289 << util::format_duration(ts.connect.sd) << std::setw(9) in main()
3292 << util::format_duration(ts.ttfb.min) << " " << std::setw(10) in main()
[all …]
Dutil.h757 std::string format_duration(const std::chrono::microseconds &u);
760 std::string format_duration(double t);
Dnghttp.cc2245 << ("+" + util::format_duration(response_end)) << " " in print_stats()
2247 << ("+" + util::format_duration(request_start)) << " " in print_stats()
2248 << std::setw(8) << util::format_duration(total) << " " in print_stats()
Dutil.cc1262 std::string format_duration(const std::chrono::microseconds &u) { in format_duration() function
1278 std::string format_duration(double t) { in format_duration() function
/third_party/rust/crates/humantime/src/
Dduration.rs255 pub fn format_duration(val: Duration) -> FormattedDuration { in format_duration() function
339 use super::{parse_duration, format_duration};
393 parse_duration(&format_duration(d).to_string()).unwrap()); in all_86400_seconds()
403 parse_duration(&format_duration(d).to_string()).unwrap()); in random_second()
414 parse_duration(&format_duration(d).to_string()).unwrap()); in random_any()
Dwrapper.rs6 use crate::duration::{self, parse_duration, format_duration};
75 format_duration(self.0).fmt(f) in fmt()
Dlib.rs27 pub use self::duration::{format_duration, FormattedDuration};
/third_party/python/Lib/test/libregrtest/
Druntest_mp.py22 from test.libregrtest.utils import format_duration, print_warning
356 text = '%s (%s)' % (current_test_name, format_duration(dt))
384 % (format_duration(self.ns.timeout),
385 format_duration(self.worker_timeout)))
433 text += ' (%s)' % format_duration(result.duration_sec)
Dmain.py20 from test.libregrtest.utils import removepy, count, format_duration, printlist
382 print("- %s: %s" % (test, format_duration(test_time)))
419 msg += " (timeout: %s)" % format_duration(self.ns.timeout)
449 previous_test = "%s in %s" % (previous_test, format_duration(test_time))
555 print("Total duration: %s" % format_duration(duration))
Dutils.py8 def format_duration(seconds): function
Druntest.py16 from test.libregrtest.utils import clear_caches, format_duration, print_warning
/third_party/python/Lib/test/
Dtest_regrtest.py1329 self.assertEqual(utils.format_duration(0),
1331 self.assertEqual(utils.format_duration(1e-9),
1333 self.assertEqual(utils.format_duration(10e-3),
1335 self.assertEqual(utils.format_duration(1.5),
1337 self.assertEqual(utils.format_duration(1),
1339 self.assertEqual(utils.format_duration(2 * 60),
1341 self.assertEqual(utils.format_duration(2 * 60 + 1),
1343 self.assertEqual(utils.format_duration(3 * 3600),
1345 self.assertEqual(utils.format_duration(3 * 3600 + 2 * 60 + 1),
1347 self.assertEqual(utils.format_duration(3 * 3600 + 1),
/third_party/ffmpeg/libavutil/
Dopt.c744 static void format_duration(char *buf, size_t size, int64_t d) in format_duration() function
864 format_duration(buf, sizeof(buf), i64); in av_opt_get()
1298 format_duration(buf, sizeof(buf), opt->default_val.i64); in opt_list()