diff options
Diffstat (limited to 'private/oleauto/tests/disptest/timer.c')
-rw-r--r-- | private/oleauto/tests/disptest/timer.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/private/oleauto/tests/disptest/timer.c b/private/oleauto/tests/disptest/timer.c new file mode 100644 index 000000000..1b28ca802 --- /dev/null +++ b/private/oleauto/tests/disptest/timer.c @@ -0,0 +1,29 @@ +/*** +*timer.c - Timing functions. +* +* Copyright (C) 1992, Microsoft Corporation. All Rights Reserved. +* Information Contained Herein Is Proprietary and Confidential. +* +*Purpose: +* +*Revision History: +* +* [00] 02-Oct-92 bradlo: Created. +* +*Implementation Notes: +* +*****************************************************************************/ + +#include <stdio.h> +#include <sys/timeb.h> + +double +GetTime() +{ + double secs; + struct _timeb t; + + _ftime(&t); + secs = t.time + (t.millitm/1000.0); + return secs; +} |