Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/test/
Dtest_regrtest.py690 self.assertEqual(utils.format_duration(0),
692 self.assertEqual(utils.format_duration(1e-9),
694 self.assertEqual(utils.format_duration(10e-3),
696 self.assertEqual(utils.format_duration(1.5),
698 self.assertEqual(utils.format_duration(1),
700 self.assertEqual(utils.format_duration(2 * 60),
702 self.assertEqual(utils.format_duration(2 * 60 + 1),
704 self.assertEqual(utils.format_duration(3 * 3600),
706 self.assertEqual(utils.format_duration(3 * 3600 + 2 * 60 + 1),
708 self.assertEqual(utils.format_duration(3 * 3600 + 1),
Dregrtest.py273 def format_duration(seconds): function
808 running.append('%s (%s)' % (current_test, format_duration(dt)))
836 text += ' (%s)' % format_duration(test_time)
904 format_duration(test_time))
1047 print("Total duration: %s" % format_duration(duration))
/external/python/cpython3/Lib/test/
Dtest_regrtest.py1075 self.assertEqual(utils.format_duration(0),
1077 self.assertEqual(utils.format_duration(1e-9),
1079 self.assertEqual(utils.format_duration(10e-3),
1081 self.assertEqual(utils.format_duration(1.5),
1083 self.assertEqual(utils.format_duration(1),
1085 self.assertEqual(utils.format_duration(2 * 60),
1087 self.assertEqual(utils.format_duration(2 * 60 + 1),
1089 self.assertEqual(utils.format_duration(3 * 3600),
1091 self.assertEqual(utils.format_duration(3 * 3600 + 2 * 60 + 1),
1093 self.assertEqual(utils.format_duration(3 * 3600 + 1),
/external/python/cpython3/Lib/test/libregrtest/
Druntest_mp.py16 from test.libregrtest.utils import format_duration
172 text = '%s (%s)' % (current_test, format_duration(dt))
204 text += ' (%s)' % format_duration(test_time)
Dmain.py21 from test.libregrtest.utils import removepy, count, format_duration, printlist
352 print("- %s: %s" % (test, format_duration(time)))
419 previous_test = "%s in %s" % (previous_test, format_duration(test_time))
532 print("Total duration: %s" % format_duration(duration))
Dutils.py6 def format_duration(seconds): function