The PLC has a scan cycle. Probably it is set to 10 msecs.
The ladder may take only one or two msecs to run and then it has 8 msecs of sleeping while it waits for the start of the next scan.
The above setting may be found by right-click of the IEC task in the control panel and then selecting IEC 61131-3 settings.