diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-27 17:56:06 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-27 18:59:57 -0700 |
| commit | 75e8752cb90eb8bc7717518d9d6a5c68f27f2b0f (patch) | |
| tree | b3a8c01beebba2b7e5524363b59bfc088aab83a2 /toolsrc/include/vcpkg_Chrono.h | |
| parent | db2bc7ed80cd85935bcf80a02a06c796d01197b7 (diff) | |
| download | vcpkg-75e8752cb90eb8bc7717518d9d6a5c68f27f2b0f.tar.gz vcpkg-75e8752cb90eb8bc7717518d9d6a5c68f27f2b0f.zip | |
Run clang-format over the headers. Remove stray Version.h/cpp. Fix location of VersionT.cpp
Diffstat (limited to 'toolsrc/include/vcpkg_Chrono.h')
| -rw-r--r-- | toolsrc/include/vcpkg_Chrono.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/toolsrc/include/vcpkg_Chrono.h b/toolsrc/include/vcpkg_Chrono.h index 8c6bd1eca..c14019ff9 100644 --- a/toolsrc/include/vcpkg_Chrono.h +++ b/toolsrc/include/vcpkg_Chrono.h @@ -12,16 +12,13 @@ namespace vcpkg constexpr ElapsedTime() : m_start_tick() {} - template <class TimeUnit> + template<class TimeUnit> TimeUnit elapsed() const { return std::chrono::duration_cast<TimeUnit>(std::chrono::high_resolution_clock::now() - this->m_start_tick); } - double microseconds() const - { - return elapsed<std::chrono::duration<double, std::micro>>().count(); - } + double microseconds() const { return elapsed<std::chrono::duration<double, std::micro>>().count(); } std::string to_string() const; |
