/**
 *  pavelkolodin@gmail.com
 * 
 *
 */

#include "interval_meter.h"
#include <iostream>

namespace fir {
namespace time {

unsigned long long diff_useconds (const struct timeval& begin, const struct timeval& end)
{
    unsigned diff_sec = end.tv_sec - begin.tv_sec;
    unsigned long long ret = 1000000 * diff_sec    + end.tv_usec - begin.tv_usec;
    return ret;
}

}
}
