5s
rather than 5000
. Kernel::Clock::now() + 5s
rather than Kernel::get_ms_count() + 5000
. 5s
rather than 5000
. Kernel::Clock::now() + 5s
rather than Kernel::get_ms_count() + 5000
. 5s
rather than 5000
. Kernel::Clock::now() + 5s
rather than Kernel::get_ms_count() + 5000
. static_assert
instead. For C this is provided by <assert.h>
, and for C++ it is a built-in keyword. static_assert
instead. For C this is provided by <assert.h>
, and for C++ it is a built-in keyword. try_alloc_for
. For example use try_alloc_for(5s)
rather than alloc_for(5000)
. try_alloc_until
. For example use try_alloc_until(Kernel::Clock::now() + 5s)
rather than alloc_until(Kernel::get_ms_count() + 5000)
. try_calloc_for
. For example use try_calloc_for(5s)
rather than calloc_for(5000)
. try_calloc_until
. For example use try_calloc_until(Kernel::Clock::now() + 5s)
rather than calloc_until(Kernel::get_ms_count() + 5000)
. 5s
rather than 5000
. Kernel::Clock::now() + 5s
rather than Kernel::get_ms_count() + 5000
. Kernel::Clock::now()
to get a chrono time_point instead of an integer millisecond count. 5s
rather than 5000
. Kernel::Clock::now() + 5s
rather than Kernel::get_ms_count() + 5000
. 5s
rather than 5000
. Kernel::Clock::now() + 5s
rather than Kernel::get_ms_count() + 5000
. 5s
rather than 5000
. Kernel::Clock::now() + 5s
rather than Kernel::get_ms_count() + 5000
. 5s
rather than 5000
. Kernel::Clock::now() + 5s
rather than Kernel::get_ms_count() + 5000
. 10ms
rather than 0.01f
. 10ms
rather than 10000
.