#include <stdlib.h>
#include <assert.h>
#include <float.h>
#include <math.h>
#include <stdio.h>
#include <time.h>
#include <sys/resource.h>
#include <sys/time.h>
#include <pthread.h>
#include <sched.h>
#include <errno.h>
#include <string.h>
#include <ctype.h>
Go to the source code of this file.
#define DECLARE_TIMER |
( |
|
num | ) |
|
#define DEFINE_TIMER |
( |
|
num | ) |
|
#define RESET_TIMER |
( |
|
num | ) |
|
#define START_TIMER |
( |
|
num | ) |
|
#define STOP_TIMER |
( |
|
num | ) |
|
double get_my_timer |
( |
TIMER * |
timer | ) |
|
Returns the time measured by a given timer
- Parameters
-
*timer | Pointer to timer struct instance |
- Returns
- Passed time in seconds
long get_system_time_in_microseconds |
( |
void |
| ) |
|
Helper method for computing the current time (w.r.t to an offset).
- Returns
- System in in microseconds
void init_my_timer |
( |
TIMER * |
timer | ) |
|
Initializes a timer
- Parameters
-
*timer | Pointer to timer struct instance |
void start_my_timer |
( |
TIMER * |
timer | ) |
|
Starts a given timer
- Parameters
-
*timer | Pointer to timer struct instance |
void stop_my_timer |
( |
TIMER * |
timer | ) |
|
Stops a given timer
- Parameters
-
*timer | Pointer to timer struct instance |