aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/vcpkg_System.cpp
diff options
context:
space:
mode:
authorAlexander Karatarakis <alkarata@microsoft.com>2016-10-10 18:46:40 -0700
committerAlexander Karatarakis <alkarata@microsoft.com>2016-10-10 18:46:40 -0700
commit38bf4de0fe4772f9aa7c9b5884617369638ba0d8 (patch)
treeb12722596709f870414b298f0938cd4c9b8eba4d /toolsrc/src/vcpkg_System.cpp
parenta6f8650edbd13023b271dd8cb10b3538121d7a35 (diff)
downloadvcpkg-38bf4de0fe4772f9aa7c9b5884617369638ba0d8.tar.gz
vcpkg-38bf4de0fe4772f9aa7c9b5884617369638ba0d8.zip
Rename System::Stopwatch to System::Stopwatch2
Diffstat (limited to 'toolsrc/src/vcpkg_System.cpp')
-rw-r--r--toolsrc/src/vcpkg_System.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/toolsrc/src/vcpkg_System.cpp b/toolsrc/src/vcpkg_System.cpp
index 4dc37857d..cc7080069 100644
--- a/toolsrc/src/vcpkg_System.cpp
+++ b/toolsrc/src/vcpkg_System.cpp
@@ -90,20 +90,20 @@ namespace vcpkg {namespace System
return ret;
}
- void Stopwatch::start()
+ void Stopwatch2::start()
{
static_assert(sizeof(start_time) == sizeof(LARGE_INTEGER), "");
QueryPerformanceCounter(reinterpret_cast<LARGE_INTEGER*>(&start_time));
}
- void Stopwatch::stop()
+ void Stopwatch2::stop()
{
QueryPerformanceCounter(reinterpret_cast<LARGE_INTEGER*>(&end_time));
QueryPerformanceFrequency(reinterpret_cast<LARGE_INTEGER*>(&freq));
}
- double Stopwatch::microseconds() const
+ double Stopwatch2::microseconds() const
{
return (reinterpret_cast<const LARGE_INTEGER*>(&end_time)->QuadPart -
reinterpret_cast<const LARGE_INTEGER*>(&start_time)->QuadPart) * 1000000.0 / reinterpret_cast<const LARGE_INTEGER*>(&freq)->QuadPart;