Skip to content

Commit

Permalink
Fix sleep duration for rt sync on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jensdo authored and OpenModelica-Hudson committed Apr 21, 2016
1 parent 86399e4 commit 4d8f6c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SimulationRuntime/c/util/rtclock.c
Expand Up @@ -316,7 +316,7 @@ int64_t rt_ext_tp_sync_nanosec(rtclock_t* tick_tp, uint64_t nsec)
if (d < 0) {
break;
} if (d >= 2e-3) {
Sleep((int)d*1e3);
Sleep((int)(d*1e3));
} else {
Sleep(0);
}
Expand Down

0 comments on commit 4d8f6c5

Please sign in to comment.