2 * Copyright 2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Distributed under the terms of the MIT License.
12 ftime(struct timeb
*timeb
)
20 gettimeofday(&tv
, &tz
);
22 timeb
->time
= tv
.tv_sec
;
23 timeb
->millitm
= tv
.tv_usec
/ 1000UL;
24 timeb
->timezone
= tz
.tz_minuteswest
;
25 timeb
->dstflag
= tz
.tz_dsttime
;