2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

pullup fixed from 9.3

This commit is contained in:
Mark Andrews
2004-03-16 05:52:24 +00:00
parent 1fa26403d7
commit 28b863e609
38 changed files with 1714 additions and 1454 deletions

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: time.c,v 1.37 2004/03/05 05:11:59 marka Exp $ */
/* $Id: time.c,v 1.38 2004/03/16 05:52:22 marka Exp $ */
#include <config.h>
@@ -200,6 +200,19 @@ isc_time_microdiff(const isc_time_t *t1, const isc_time_t *t2) {
return (i3);
}
isc_uint32_t
isc_time_seconds(const isc_time_t *t) {
SYSTEMTIME st;
/*
* Convert the time to a SYSTEMTIME structure and the grab the
* milliseconds
*/
FileTimeToSystemTime(&t->absolute, &st);
return ((isc_uint32_t)(st.wMilliseconds / 1000));
}
isc_uint32_t
isc_time_nanoseconds(const isc_time_t *t) {
SYSTEMTIME st;