cpukit/capture: Use the new RTEMS API to get the uptime in nanoseconds.

Use the new API to get the uptime in nanoseconds and update the capture
engine.
This commit is contained in:
Chris Johns
2013-12-24 16:42:23 +11:00
parent 2d1bdc8f79
commit 9f9c0bbf47
3 changed files with 57 additions and 16 deletions

View File

@@ -121,7 +121,7 @@ rtems_capture_get_time (rtems_capture_time_t* time)
capture_timestamp (time);
else
{
_TOD_Get_uptime(time);
*time = rtems_clock_get_uptime_nanoseconds ();
}
}
@@ -953,7 +953,8 @@ rtems_capture_switch_task (rtems_tcb* current_task,
if (ct)
{
ct->out++;
ct->time += time - ct->time_in;
if (ct->time_in)
ct->time += time - ct->time_in;
}
if (rtems_capture_trigger (ct, ht, RTEMS_CAPTURE_SWITCH))