![]() |
The ROme OpTimistic Simulator
2.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
|
Timers. More...
#include <time.h>
#include <sys/time.h>
Go to the source code of this file.
Macros | |
#define | timer_start(timer_name) gettimeofday(&timer_name, NULL) |
#define | timer_restart(timer_name) timer_start(timer_name) |
#define | timer_value_seconds(timer_name) ((double)timer_value_milli(timer_name) / 1000.0) |
#define | timer_value_milli(timer_name) |
#define | timer_value_micro(timer_name) |
#define | TIMER_BUFFER_LEN 64 |
#define | timer_tostring(timer_name, string) |
string must be a char array of at least TIMER_BUFFER_LEN bytes to keep the whole string More... | |
Typedefs | |
typedef struct timeval | timer |
Timers.
This header defines the timers which the simulator uses to monitor its internal behaviour
This file is part of ROOT-Sim (ROme OpTimistic Simulator).
ROOT-Sim is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; only version 3 of the License applies.
ROOT-Sim is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with ROOT-Sim; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Definition in file timer.h.
#define timer_tostring | ( | timer_name, | |
string | |||
) |
string must be a char array of at least TIMER_BUFFER_LEN bytes to keep the whole string
#define timer_value_micro | ( | timer_name | ) |
#define timer_value_milli | ( | timer_name | ) |