Commit 91215163 authored by Philipp Schäfer's avatar Philipp Schäfer
Browse files

Timer: minor fix in comment

parent 976dca9b
......@@ -3439,7 +3439,7 @@ public:
mexWarnMsgTxt("Failed to set minimum clock period to 1ms. The timer might not work with the desired accuracy!");
LARGE_INTEGER liDueTime; //Time till first activation
liDueTime.QuadPart = -((long long)std::floor(dPeriod * 10000000) + 10); // Number of 100ns slots, added 1ms to period for first call
liDueTime.QuadPart = -((long long)std::floor(dPeriod * 10000000) + 10); // Number of 100ns slots, added 1us to period for first call
long lPeriod = (long)std::floor(dPeriod * 1000); // Dauer in Millisekunden
if (SetWaitableTimer(hHandle, &liDueTime, lPeriod, NULL, NULL, FALSE) == false)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment