Skip to content

Instantly share code, notes, and snippets.

@binarykore
Created March 31, 2022 07:38
Show Gist options
  • Save binarykore/5603414133edc60eb55ad0387a9eb319 to your computer and use it in GitHub Desktop.
Save binarykore/5603414133edc60eb55ad0387a9eb319 to your computer and use it in GitHub Desktop.
<?php
function perMinute(){
$_second = 1;//Double per 60 Seconds..
$_halfmin = 30;//Change to 60 for 1 Minute..
$_minute = $_second * $_halfmin;
sleep($_minute);
$_time = time();
return($_time."\r\n");
}
for($_i = 0;$_i <= 61;$_i++){
echo($_i."\r\n");
echo(perMinute());
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment