mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-07 07:10:35 +08:00
Perf counter fixes
This commit is contained in:
@@ -272,11 +272,14 @@ perf_end(perf_counter_t handle)
|
||||
}
|
||||
}
|
||||
|
||||
#include <systemlib/err.h>
|
||||
|
||||
void
|
||||
perf_set(perf_counter_t handle, int64_t elapsed)
|
||||
{
|
||||
if (handle == NULL)
|
||||
if (handle == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
switch (handle->type) {
|
||||
case PC_ELAPSED: {
|
||||
|
||||
Reference in New Issue
Block a user