view spandsp-0.0.3/spandsp-0.0.3/src/msvc/gettimeofday.c @ 5:f762bf195c4b

import spandsp-0.0.3
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Fri, 25 Jun 2010 16:00:21 +0200
parents
children
line wrap: on
line source

#ifdef _MSC_VER
#pragma warning(disable:4100)
#endif

#include "windows.h"

void gettimeofday(struct timeval *tv, void *tz)
{
    long int l = GetTickCount();
 
    tv->tv_sec = l / 1000;
    tv->tv_usec = (l % 1000) * 1000;
    return;
} 

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.