FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 03-07-2012, 10:23 PM
Sian Mountbatten
 
Default Timing a process

Hello All,

AFAIK, there is a command which says how long a process takes to
complete. Its invoked with the command to be timed as an argument. Does
anybody know what it is?

--
Sian Mountbatten
Algol 68 specialist


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Archive: jj8qku$vpr$1@speranza.aioe.org">http://lists.debian.org/jj8qku$vpr$1@speranza.aioe.org
 
Old 03-07-2012, 10:47 PM
"der.hans"
 
Default Timing a process

Am 07. Mar, 2012 schwätzte Sian Mountbatten so:

moin moin Sian,

AFAIK, there is a command which says how long a process takes to complete.
Its invoked with the command to be timed as an argument. Does anybody know
what it is?


Do you mean time?

$ time sleep 10

real 0m10.001s
user 0m0.000s
sys 0m0.000s

ciao,

der.hans
--
# http://www.LuftHans.com/ http://www.LuftHans.com/Classes/
# ABLEconf: http://www.ABLEconf.com/2012/Phoenix/Schedule
# Saturday, March 24th @ UAT in Tempe - Free Software for Free Enterprise
# If determining good culture is left up to busybodies and politicians,
# we will be left with culture fit only for busybodies and politicians.
# -- Jeff Taylor, Reason
 
Old 03-07-2012, 10:55 PM
Claudius Hubig
 
Default Timing a process

Hello Sian,

Sian Mountbatten <poenikatu@fastmail.co.uk> wrote:
> Hello All,
>
> AFAIK, there is a command which says how long a process takes to
> complete. Its invoked with the command to be timed as an argument. Does
> anybody know what it is?

time

for example

# time dd if=/dev/urandom of=/dev/null bs=1M count=1

See also man time(1)

Best regards,

Claudius
--
I'll be Grateful when they're Dead.
Please use GPG: ECB0C2C7 4A4C4046 446ADF86 C08112E5 D72CDBA4
http://chubig.net/ http://nightfall.org
 
Old 03-08-2012, 01:12 AM
Paul Johnson
 
Default Timing a process

On Mar 7, 2012 3:47 PM, "Sian Mountbatten" <poenikatu@fastmail.co.uk> wrote:


> AFAIK, there is a command which says how long a process takes to complete. Its invoked with the command to be timed as an argument. Does anybody know what it is?


Oddly enough, it's time(1).
 
Old 03-08-2012, 09:36 AM
Andrei POPESCU
 
Default Timing a process

On Jo, 08 mar 12, 00:55:53, Claudius Hubig wrote:
>
> # time dd if=/dev/urandom of=/dev/null bs=1M count=1
>
> See also man time(1)

time is built-in in at least bash. If you want/need to use the command
described in that manpage you can use the full path instead:

/usr/bin/time dd if= ...

Kind regards,
Andrei
--
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
 

Thread Tools




All times are GMT. The time now is 12:31 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org