blob: 9da0e1c67b8923565c2e3b8b7ee9abd01cc86313 [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"
ndn_MillisecondsSince1970
ndn_getNowMilliseconds()
{
struct timeval t;
gettimeofday(&t, 0);
return t.tv_sec * 1000.0 + t.tv_usec / 1000.0;
}