Searched refs:fromDurationString (Results 1 – 5 of 5) sorted by relevance
/openbmc/bmcweb/test/redfish-core/include/utils/ |
H A D | time_utils_test.cpp | 21 EXPECT_EQ(fromDurationString("PT12S"), std::chrono::milliseconds(12000)); in TEST() 22 EXPECT_EQ(fromDurationString("PT0.204S"), std::chrono::milliseconds(204)); in TEST() 23 EXPECT_EQ(fromDurationString("PT0.2S"), std::chrono::milliseconds(200)); in TEST() 24 EXPECT_EQ(fromDurationString("PT50M"), std::chrono::milliseconds(3000000)); in TEST() 25 EXPECT_EQ(fromDurationString("PT23H"), std::chrono::milliseconds(82800000)); in TEST() 26 EXPECT_EQ(fromDurationString("P51D"), in TEST() 28 EXPECT_EQ(fromDurationString("PT2H40M10.1S"), in TEST() 30 EXPECT_EQ(fromDurationString("P20DT2H40M10.1S"), in TEST() 32 EXPECT_EQ(fromDurationString(""), std::chrono::milliseconds(0)); in TEST() 37 EXPECT_EQ(fromDurationString("PTS"), std::nullopt); in TEST() [all …]
|
/openbmc/bmcweb/redfish-core/include/utils/ |
H A D | time_utils.hpp | 26 std::optional<std::chrono::milliseconds> fromDurationString(std::string_view v);
|
/openbmc/bmcweb/redfish-core/lib/ |
H A D | trigger.hpp | 314 time_utils::fromDurationString(dwellTimeStr); in parseThreshold() 421 time_utils::fromDurationString(dwellTimeStr); in parseDiscreteTriggers()
|
H A D | metric_report_definition.hpp | 510 time_utils::fromDurationString(*collectionDurationStr); in getUserMetric() 645 time_utils::fromDurationString(*scheduleDurationStr); in getUserParameters() 1094 time_utils::fromDurationString(*recurrenceIntervalStr); in setReportTypeAndInterval()
|
/openbmc/bmcweb/redfish-core/src/utils/ |
H A D | time_utils.cpp | 36 std::optional<std::chrono::milliseconds> fromDurationString(std::string_view v) in fromDurationString() function
|