php ./example/loop_quickstart.php * * Following flags are supported to test example with different configurations: * * --model : define model to use, default: select, supported: [ select ] * * Ex: * $> php ./example/loop_quickstart.php --model=select * * --------------------------------------------------------------------------------------------------------------------- */ $model = ''; require_once __DIR__ . '/bootstrap/autoload.php'; use Dazzle\Loop\Loop; $loop = new Loop(new $model); $loop->addPeriodicTimer(1, function() { printf("\rCurrent clock: %s", date('Y-m-d H:i:s')); }); $loop->start();