Time¶ In less than x millisecondsIn less than x secondsIn more than x millisecondsIn more than x seconds static function(Assert $assert) { $assert ->time(static function() { // execute your code here }) ->inLessThan() ->milliseconds($number, 'Optional error message'); } static function(Assert $assert) { $assert ->time(static function() { // execute your code here }) ->inLessThan() ->seconds($number, 'Optional error message'); } static function(Assert $assert) { $assert ->time(static function() { // execute your code here }) ->inMoreThan() ->milliseconds($number, 'Optional error message'); } static function(Assert $assert) { $assert ->time(static function() { // execute your code here }) ->inMoreThan() ->seconds($number, 'Optional error message'); }