/* * util.cpp * * Simulation of Chandy-Lamport algorithm * * This file is a part of Distributed Systems term thesis * Department KIV, ZCU Plzen * Author: Martin Sloup, msloup@students.zcu.cz */ #include #include "util.h" long double timeval2double(struct timeval *time) { return ((long double) time->tv_sec) + ((long double) time->tv_usec) / 1000000; }