Perf counter fixes

This commit is contained in:
Lorenz Meier
2015-01-09 09:08:21 +01:00
parent 7d56ae4ed6
commit 6203c73ccc
2 changed files with 7 additions and 14 deletions
+4 -1
View File
@@ -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: {