blob: a79404799d30ed3d5373db17e3f848f5184a6924 [file] [log] [blame]
/**
* Copyright (C) 2013 Regents of the University of California.
* @author: Jeff Thompson <jefft0@remap.ucla.edu>
* See COPYING for copyright and distribution information.
*/
#include <sys/time.h>
#include "time.h"
double
ndn_getNowMilliseconds()
{
struct timeval t;
gettimeofday(&t, 0);
return t.tv_sec * 1000.0 + t.tv_usec / 1000.0;
}