4 * $author: Salvatore Sanfilippo <antirez@invece.org>$
5 * $copyright: Copyright (C) 1999 by Salvatore Sanfilippo$
6 * $license: This software is under GPL version 2 of license$
7 * $date: Fri Nov 5 11:55:47 MET 1999$
11 /* $Id: getusec.c,v 1.2 2003/09/01 00:22:06 antirez Exp $ */
20 gettimeofday(&tmptv, NULL);
24 time_t milliseconds(void)
27 gettimeofday(&tv, NULL);
28 return ((tv.tv_sec % 86400) * 1000 + tv.tv_usec / 1000);