MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / TEST

Function TEST

Engine/source/platform/test/platformTimerTest.cpp:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27#include "math/mMath.h"
28
29TEST(Platform, AdvanceTime)
30{
31 U32 time = Platform::getVirtualMilliseconds();
32 Platform::advanceTime(10);
33 U32 newTime = Platform::getVirtualMilliseconds();
34 EXPECT_EQ(10, newTime - time)
35 << "We advanced 10ms but didn't get a 10ms delta!";
36}
37
38TEST(Platform, Sleep)
39{

Callers

nothing calls this directly

Calls 3

advanceTimeFunction · 0.85
mAbsFunction · 0.85
notifyMethod · 0.45

Tested by

no test coverage detected