Regular API function

simSetThreadSwitchTiming / sim.setThreadSwitchTiming

Description Allows specifying a thread interruption- or switch-delay, that will be automatically enforced by the system (preemptive threading). By default this value is 2 millisecond. For complete control over the switching moment, see also sim.setThreadAutomaticSwitch, sim.setThreadSwitchAllowed and sim.switchThread.
C synopsis
C parameters
C return value
Lua synopsis sim.setThreadSwitchTiming(int deltaTimeInMilliseconds)
Lua parameters
deltaTimeInMilliseconds: desired execution time before an interruption or switch occurs.
Lua return values None