[saco] Implement DXUTGetGlobalTimer()

This commit is contained in:
RD42 2024-05-12 22:41:26 +08:00
parent 42a6ead0dc
commit 9e6b5a9f94

View File

@ -9,6 +9,17 @@
#undef min // use __min instead
#undef max // use __max instead
//--------------------------------------------------------------------------------------
// Global/Static Members
//--------------------------------------------------------------------------------------
CDXUTTimer* DXUTGetGlobalTimer()
{
// Using an accessor function gives control of the construction order
static CDXUTTimer timer;
return &timer;
}
//--------------------------------------------------------------------------------------
CDXUTTimer::CDXUTTimer()
{