Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion examples/jpg_proxy_test/JPCJob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@
#include "tinia/model/File.hpp"
#include "tinia/utils/ProxyDebugGUI.hpp"


#ifdef WIN32
#define NOMINMAX
#include <Windows.h>
#endif

namespace tinia {
namespace example {
Expand Down Expand Up @@ -143,7 +146,11 @@ bool JPCJob::renderFrame(const std::string &session, const std::string &key, uns
m_model->getElementValue("simulatedAdditionalLatency", ms);
if (ms>0) {
std::cout << "Sleeping for " << ms << " ms." << std::endl;
#ifndef WIN32
usleep( 1000 * ms );
#else
Sleep( 1000 * ms );
#endif
}
}

Expand Down