use time_monotonic() instead of time() for statistics and time difference calculations

This commit is contained in:
Martin Willi committed 2009-08-31 18:00:28 +02:00
1 parent de5784452b
commit 6180a55852
13 files changed
+65 -42

No files matched your search

@@ -2382,7 +2382,7 @@ static status_t query_policy(private_kernel_klips_ipsec_t *this,
break;
}
*use_time = time(NULL) - idle_time;
*use_time = time_monotonic(NULL) - idle_time;
status = SUCCESS;
break;
}