Core/Misc: Remove non-portable hack of including <__msvc_chrono.hpp> - will break in future MSVC release (#30460)

This commit is contained in:
Stephan T. Lavavej
2024-11-22 16:56:07 -08:00
committed by GitHub
parent 848fa5bbaa
commit 96956b0e5b

View File

@@ -18,12 +18,7 @@
#ifndef _DURATION_H_
#define _DURATION_H_
// HACKS TERRITORY
#if __has_include(<__msvc_chrono.hpp>)
#include <__msvc_chrono.hpp> // skip all the formatting/istream/locale/mutex bloat
#else
#include <chrono>
#endif
/// Milliseconds shorthand typedef.
typedef std::chrono::milliseconds Milliseconds;