Skip to content

Commit 90d5cea

Browse files
committed
Fix build errors
1 parent 49f4ef8 commit 90d5cea

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Port/WorkerThreadStd.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ void WorkerThread::TimerThread()
155155
{
156156
while (!m_timerExit)
157157
{
158-
std::this_thread::sleep_for(100ms);
158+
std::this_thread::sleep_for(std::chrono::milliseconds(100));
159159

160160
ThreadMsg* threadMsg = new ThreadMsg(MSG_TIMER, 0);
161161

main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ int main()
5050

5151
// Wait for SelfTestEngine to complete
5252
while (!selfTestEngineCompleted)
53-
this_thread::sleep_for(1s);
53+
std::this_thread::sleep_for(std::chrono::seconds(1));
5454

5555
// Cleanup before exit
5656
ExitThreads();
5757
CB_Term();
5858
TMR_Term();
5959
ALLOC_Term();
6060

61-
this_thread::sleep_for(1s);
61+
std::this_thread::sleep_for(std::chrono::seconds(1));
6262

6363
return 0;
6464
}

0 commit comments

Comments
 (0)