Download h source code

/*
 * Copyright 2021 Jeisson Hidalgo-Cespedes - Universidad de Costa Rica
 */

#ifndef COMMON_H
#define COMMON_H

#include <stdbool.h>
#include <time.h>
#include <unistd.h>

typedef useconds_t data_t;

#define END_OF_WORK ((data_t) -1)

double calculate_elapsed_time(const struct timespec* start_time);

#endif  // COMMON_H