rick645 Posted 18 hours ago Share Posted 18 hours ago (edited) https://www.php.net/manual/it/function.register-tick-function.php Specifically https://www.php.net/manual/it/control-structures.declare.php#control-structures.declare.ticks Quote A tick is an event that occurs for every N low-level tickable statements executed by the parser within the declare block. The value for N is specified using ticks=N within the declare block's directive section. Honestly, it's not very clear. Can someone explain it better? Edited 18 hours ago by rick645 Quote Link to comment https://forums.phpfreaks.com/topic/329083-register_tick_function-and-declareticks/ Share on other sites More sharing options...
requinix Posted 17 hours ago Share Posted 17 hours ago A tick happens every time the engine does something at a fairly granular level. Like executes a statement, but even lower-level than that. The easiest way to understand it is going to be to play with code: set up a ticket handler every 1/2/3/whatever ticks, have it output something, and then write a bunch of code to execute and see what happens. Quote Link to comment https://forums.phpfreaks.com/topic/329083-register_tick_function-and-declareticks/#findComment-1655549 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.