Prev Next microsoft_timer

@(@\newcommand{\W}[1]{ \; #1 \; } \newcommand{\R}[1]{ {\rm #1} } \newcommand{\B}[1]{ {\bf #1} } \newcommand{\D}[2]{ \frac{\partial #1}{\partial #2} } \newcommand{\DD}[3]{ \frac{\partial^2 #1}{\partial #2 \partial #3} } \newcommand{\Dpow}[2]{ \frac{\partial^{#1}}{\partial {#2}^{#1}} } \newcommand{\dpow}[2]{ \frac{ {\rm d}^{#1}}{{\rm d}\, {#2}^{#1}} }@)@
Microsoft Version of Elapsed Number of Seconds

Syntax
s = microsoft_timer()

Purpose
This routine is accurate to within .02 seconds (see elapsed_seconds which uses this routine when the preprocessor symbol _MSC_VER is defined). It does not necessary work for time intervals that are greater than a day. It uses ::GetSystemTime for timing.

s
is a double equal to the number of seconds since the first call to microsoft_timer.

Linking
The source code for this routine is located in speed/src/microsoft_timer.cpp. The preprocessor symbol _MSC_VER must be defined, or this routine is not compiled.
Input File: speed/src/microsoft_timer.cpp