#!/usr/bin/perl -w use strict; use Time::HiRes ('sleep'); print STDERR 'Pausing:'; sleep(0.01); ## Sleep for 1/100th of a second (10ms) print STDERR 'done',"\n";
It's worth mentioning that this isn't guaranteed to be ultra-accurate.
Anima Legato
.oO all things connect through the motion of the mind
In reply to Re: How to pause 10ms in perl
by legato
in thread How to pause 10ms in perl
by fz315
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |