Game Development Community

PlatformThread.h & pausing/sleeping

by Paul Griffiths · in Torque Game Engine · 07/03/2006 (2:19 pm) · 1 replies

Im using platformThread.h, how do you sleep? Thanks.

while (true) {
    if (clients.size() > 0) {
        Con::printf("Sending image...");
    } else {
        // how to pause here,for 10 miliseconds?
    }
}