We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7900863 commit 25e2b88Copy full SHA for 25e2b88
TESTS/mbed_platform/stats_cpu/main.cpp
@@ -63,6 +63,8 @@ void get_cpu_usage()
63
void test_cpu_info(void)
64
{
65
mbed_stats_cpu_t stats;
66
+ // Additional read to make sure timer is initialized
67
+ mbed_stats_cpu_get(&stats);
68
Thread::wait(1);
69
mbed_stats_cpu_get(&stats);
70
TEST_ASSERT_NOT_EQUAL(0, stats.uptime);
0 commit comments