Skip to content
Snippets Groups Projects
Commit 40fe06b0 authored by dawehr's avatar dawehr
Browse files

Fixed issue with logging incorrect time.

parent a5d4daa5
No related branches found
No related tags found
No related merge requests found
......@@ -34,11 +34,11 @@ int timer_end_loop(log_t *log_struct)
//timing code
global_timer->read(global_timer, &after);
time_stamp += LOOP_TIME;
time_stamp += get_last_loop_time();
// Log the timing information
log_struct->time_stamp = time_stamp;
log_struct->time_slice = LOOP_TIME;
log_struct->time_slice = get_last_loop_time();
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment