rick645 Posted Saturday at 07:42 AM Share Posted Saturday at 07:42 AM (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 Saturday at 07:46 AM 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 Saturday at 09:20 AM Share Posted Saturday at 09:20 AM 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.