32 THROTTLE t( std::chrono::milliseconds( 500 ) );
39 THROTTLE t( std::chrono::milliseconds( 200 ) );
47 THROTTLE t( std::chrono::milliseconds( 50 ) );
50 std::this_thread::sleep_for( std::chrono::milliseconds( 60 ) );
58 THROTTLE throttle( std::chrono::milliseconds( 100 ) );
61 int maxProgress = 1000;
64 for(
int progress = 0; progress < maxProgress; ++progress )
76 THROTTLE throttle( std::chrono::milliseconds( 100 ) );
78 int maxProgress = 1000;
91 THROTTLE throttle( std::chrono::milliseconds( 100 ) );
93 int maxProgress = 1000;
Rate-limiter that fires at most once per interval.
static bool shouldRefresh(int aProgress, int aMaxProgress, int aPhase, int aNumPhases, THROTTLE &aThrottle)
BOOST_AUTO_TEST_CASE(HorizontalAlignment)
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_CHECK(res.column_datatype(0)==SQL_NUMERIC||res.column_datatype(0)==SQL_DECIMAL)
BOOST_CHECK_EQUAL(std::any_cast< std::string >(rows[0].at("val")), "12345678901234567.89")
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(FirstCallAlwaysReady)