Searched refs:parse_readable_time_str (Results 1 – 2 of 2) sorted by relevance
365 self.assertEqual(0, command_parser.parse_readable_time_str("0"))366 self.assertEqual(100, command_parser.parse_readable_time_str("100 "))367 self.assertEqual(25, command_parser.parse_readable_time_str(" 25 "))370 self.assertEqual(1e6, command_parser.parse_readable_time_str("1 s"))371 self.assertEqual(2e6, command_parser.parse_readable_time_str("2s"))374 self.assertEqual(2, command_parser.parse_readable_time_str("2us"))377 self.assertEqual(2e3, command_parser.parse_readable_time_str("2ms"))381 command_parser.parse_readable_time_str("2uss")384 command_parser.parse_readable_time_str("2m")388 command_parser.parse_readable_time_str("-1s")
332 interval_start = parse_readable_time_str(str_interval.start)334 interval_end = parse_readable_time_str(str_interval.end)443 def parse_readable_time_str(time_str): function