![]() |
The ROme OpTimistic Simulator
3.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
|
Timers. More...
#include <arch/timer.h>
Go to the source code of this file.
Functions | |
timer_uint | timer_new (void) |
Gets a new starting point for an time interval measure. More... | |
timer_uint | timer_value (timer_uint start) |
Computes a time interval measure using a previous timer_uint value. More... | |
Timers.
This module defines the timers which the simulator uses to monitor its internal behaviour
Definition in file timer.c.
timer_uint timer_new | ( | void | ) |
Gets a new starting point for an time interval measure.
The returned value can be used in the timer_value() macro to obtain a time interval with microsecond resolution
timer_uint timer_value | ( | timer_uint | start | ) |
Computes a time interval measure using a previous timer_uint value.
start | a timer_uint value obtained from a previous timer_new() call |