MCPcopy Create free account
hub / github.com/SFML/SFML / sleep

Function sleep

src/SFML/System/Sleep.cpp:41–48  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

39{
40////////////////////////////////////////////////////////////
41void sleep(Time duration)
42{
43 // Note that 'std::this_thread::sleep_for' is intentionally not used here
44 // as it results in inconsistent sleeping times under MinGW-w64.
45
46 if (duration >= Time::Zero)
47 priv::sleepImpl(duration);
48}
49
50} // namespace sf

Callers 15

displayMethod · 0.85
waitEventMethod · 0.85
setMouseCursorGrabbedMethod · 0.85
processEventMethod · 0.85
onDestroyFunction · 0.85
onNativeWindowCreatedFunction · 0.85
onNativeWindowDestroyedFunction · 0.85
mainFunction · 0.85
ANativeActivity_onCreateFunction · 0.85
onGetDataMethod · 0.85
doServerFunction · 0.85
mainFunction · 0.85

Calls 1

sleepImplFunction · 0.50

Tested by

no test coverage detected