Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // viloid
- // Output Delay : 0s | 100% #############################################
- function timer(){
- $t = 45; // detik
- for ($i=1;$i<=$t;$i++){
- $pers = intval($i/$t*100);
- echo "\rDelay : ".($t-$i)."s | ".$pers."% ".str_repeat('#', $i);
- flush();
- sleep(1);
- }
- }
- timer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement