Mercurial > hg > audiostuff
comparison spandsp-0.0.6pre17/src/msvc/gettimeofday.c @ 4:26cd8f1ef0b1
import spandsp-0.0.6pre17
author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
---|---|
date | Fri, 25 Jun 2010 15:50:58 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3:c6c5a16ce2f2 | 4:26cd8f1ef0b1 |
---|---|
1 #ifdef _MSC_VER | |
2 #pragma warning(disable:4100) | |
3 #endif | |
4 | |
5 #include "windows.h" | |
6 | |
7 void gettimeofday(struct timeval *tv, void *tz) | |
8 { | |
9 long int l = GetTickCount(); | |
10 | |
11 tv->tv_sec = l / 1000; | |
12 tv->tv_usec = (l % 1000) * 1000; | |
13 return; | |
14 } |