view osdep/gettimeofday.c @ 25660:3993c96eaa95

Do not try to guess font metrics based on its bounding box. It was originally a workaround for fonts with bad ascender/descender values, but it breaks display of some otherwise valid fonts (bugzilla 987), so reverted.
author eugeni
date Sat, 12 Jan 2008 02:27:01 +0000
parents 936209c39ed1
children 5cfef41a1771
line wrap: on
line source

#include "config.h"

#include <sys/time.h>
#include <sys/timeb.h>
void gettimeofday(struct timeval* t,void* timezone)
{       struct timeb timebuffer;
        ftime( &timebuffer );
        t->tv_sec=timebuffer.time;
        t->tv_usec=1000*timebuffer.millitm;
}