[kanchilug] [Tip] A very simple stopwatch

  • From: "Tha.Suresh" <jemenisuresh@xxxxxxxxx>
  • To: ILUG-C <ilugc@xxxxxxxxxxxxx>, KanchiLug <kanchilug@xxxxxxxxxxxxx>, iitdlug@xxxxxxxxxxxxxxxx
  • Date: Wed, 27 Oct 2010 06:44:42 +0530

$ time read

A very simple and useful stopwatch.(ctrl-d or Enter to stop)

$ time read -sn1 (s:silent, n:number of characters. Press any character to stop)

Ex:

thasu@thasu-desktop ~/Desktop $ time read  (Press ctrl-d with in a sec)

real    0m2.424s
user    0m0.000s
sys    0m0.000s


thasu@thasu-desktop ~/Desktop $ time read -sn1 (Press any char to stop)

real    0m1.968s
user    0m0.000s
sys    0m0.000s

thasu@thasu-desktop ~/Desktop $ time read -sn3 (press any three char to stop)

real    0m3.544s
user    0m0.000s
sys    0m0.000s






--
Regards,
Tha.Suresh
http://thasulinux.wordpress.com

Other related posts: