![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sleep working | meetbhattu | UNIX for Advanced & Expert Users | 2 | 10-29-2007 01:05 PM |
| Sleep Command | Glove | Shell Programming and Scripting | 1 | 10-03-2007 02:02 AM |
| Sleep() not working | enuenu | High Level Programming | 2 | 06-01-2007 10:01 PM |
| Sleep under one second | Scoogie | Shell Programming and Scripting | 5 | 08-14-2002 05:10 AM |
| sleep | Anna | UNIX for Dummies Questions & Answers | 5 | 07-10-2001 08:52 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
Sleep less than 1 second
Does anyone know a way to sleep less than 1 second?
Sometimes when I write scripts that iterates a loop many times it would be nice to slow things down, but sometimes 1 second is too much. |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
|
|
|||
|
Quote:
Thanks a lot. |
|
|||
|
IT's not hard to measure the elapsed time:
Put Perderabo's code in a script, call it usleep.sh Code:
time usleep.sh Code:
kcsdev:/home/jmcnama> time usleep.sh real 0m0.18s user 0m0.03s sys 0m0.05s |
|||
| Google The UNIX and Linux Forums |
| Thread Tools | |
| Display Modes | |
|
|