Lines Matching refs:chrono
16 using time_point_h = std::chrono::time_point<
17 std::chrono::system_clock, std::chrono::hours>;
18 using time_point_m = std::chrono::time_point<
19 std::chrono::system_clock, std::chrono::minutes>;
20 using time_point_s = std::chrono::time_point<
21 std::chrono::system_clock, std::chrono::seconds>;
22 using time_point_ms = std::chrono::time_point<
23 std::chrono::system_clock, std::chrono::milliseconds>;
24 using time_point_us = std::chrono::time_point<
25 std::chrono::system_clock, std::chrono::microseconds>;
33 TEST_SUBMODULE(chrono, m) { in TEST_SUBMODULE() argument
34 using system_time = std::chrono::system_clock::time_point; in TEST_SUBMODULE()
35 using steady_time = std::chrono::steady_clock::time_point; in TEST_SUBMODULE()
37 using timespan = std::chrono::duration<int64_t, std::nano>; in TEST_SUBMODULE()
38 using timestamp = std::chrono::time_point<std::chrono::system_clock, timespan>; in TEST_SUBMODULE()
42 m.def("test_chrono1", []() { return std::chrono::system_clock::now(); }); in TEST_SUBMODULE()
50 m.def("test_chrono3", [](std::chrono::system_clock::duration d) { return d; }); in TEST_SUBMODULE()
58 m.def("test_chrono5", []() { return std::chrono::steady_clock::now(); }); in TEST_SUBMODULE()
66 m.def("test_chrono7", [](std::chrono::microseconds t) { return t; }); in TEST_SUBMODULE()
68 …m.def("test_chrono_float_diff", [](std::chrono::duration<float> a, std::chrono::duration<float> b)… in TEST_SUBMODULE()