From c531f726c4431dc7bdeaf53864bfe30347e426f1 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 1 Jul 2004 22:55:38 +0000 Subject: r1325: Always use GetTimeOfDay() (wrapper). Ensure ldap replication sleep time is not more than 5 seconds. Should fix issue reported by Chris Garrigues . Jeremy. (This used to be commit fbc06831d3a7e8645409158ee1ae1f9f192913a7) --- source3/torture/torture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/torture/torture.c') diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 161aa2cd73..cd797c5a8f 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -45,12 +45,12 @@ static struct timeval tp1,tp2; void start_timer(void) { - gettimeofday(&tp1,NULL); + GetTimeOfDay(&tp1 } double end_timer(void) { - gettimeofday(&tp2,NULL); + GetTimeOfDay(&tp2); return((tp2.tv_sec - tp1.tv_sec) + (tp2.tv_usec - tp1.tv_usec)*1.0e-6); } -- cgit