2 * Copyright 1993-2013 NVIDIA Corporation. All rights reserved.
4 * Please refer to the NVIDIA end user license agreement (EULA) associated
5 * with this source code for terms and conditions that govern your use of
6 * this software. Any use, reproduction, disclosure, or distribution of
7 * this software and related documentation outside the terms of the EULA
8 * is strictly prohibited.
12 /* Cuda UTility Library */
15 #include "StopWatchWin.h"
17 ////////////////////////////////////////////////////////////////////////////////
22 double StopWatchWin::freq;
24 bool StopWatchWin::freq_set;
26 StopWatchWin::StopWatchWin() :
38 // get the tick frequency from the OS
39 QueryPerformanceFrequency((LARGE_INTEGER *) &temp);
41 // convert to type in which it is needed
42 freq = ((double) temp.QuadPart) / 1000.0;
49 StopWatchWin::~StopWatchWin() { }