blob: a79404799d30ed3d5373db17e3f848f5184a6924 [file] [log] [blame]
Jeff Thompson9ae4d782013-10-17 10:25:54 -07001/**
2 * Copyright (C) 2013 Regents of the University of California.
3 * @author: Jeff Thompson <jefft0@remap.ucla.edu>
4 * See COPYING for copyright and distribution information.
5 */
6
7#include <sys/time.h>
8#include "time.h"
9
10double
11ndn_getNowMilliseconds()
12{
13 struct timeval t;
14 gettimeofday(&t, 0);
15 return t.tv_sec * 1000.0 + t.tv_usec / 1000.0;
16}