repo.or.cz
/
mplayer
/
greg.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add a comment that explains why this header has no multiple inclusion guards.
[mplayer/greg.git]
/
osdep
/
gettimeofday.c
blob
74368981215a383cd9a6ea8c2acee80d4fbd7709
1
#include
"config.h"
2
3
#include <sys/time.h>
4
#include <sys/timeb.h>
5
void
gettimeofday
(
struct
timeval
*
t
,
void
*
timezone
)
6
{
struct
timeb timebuffer
;
7
ftime
( &
timebuffer
);
8
t
->
tv_sec
=
timebuffer
.
time
;
9
t
->
tv_usec
=
1000
*
timebuffer
.
millitm
;
10
}