[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnu-arch-users] Timing each command
From: |
Zenaan Harkness |
Subject: |
[Gnu-arch-users] Timing each command |
Date: |
Mon, 18 Oct 2004 15:14:58 +1000 |
> > automatically timing every command,
>
> I'm not sure I know what you mean, but perhaps
>
> export PS1='\T address@hidden:\w\$ ' # Inserts current time (\T) in shell
> prompt
>
> or something like that? If you want seconds elapsed between prompts,
> you can try something with the PROMPT_COMMAND variable, using command
> substitution (`` or $()), and maybe an auxiliary file:
>
> export PROMPT_COMMAND='echo -n $[$(date +%s) - $(cat ~/.bash-timestamp)];date
> +%s > ~/.bash-timestamp'
I read this request as: timing the duration of a
command-as-forked-by-shell. Meaning the time between when the <ENTER>
key was last pressed, and the time the next shell prompt appears.
I can see how this could become a useful regular barometer of things.
I can't offer a ready solution though sorry...
cheers
zen
- [Gnu-arch-users] Re: newbies should neither be seen nor heard, (continued)
- [Gnu-arch-users] Re: newbies should neither be seen nor heard, Miles Bader, 2004/10/13
- [Gnu-arch-users] Re: newbies should neither be seen nor heard, Miles Bader, 2004/10/13
- Re: [Gnu-arch-users] Re: newbies should neither be seen nor heard, David Allouche, 2004/10/14
- Re: [Gnu-arch-users] Re: newbies should neither be seen nor heard, Peter Conrad, 2004/10/15
- Re: [Gnu-arch-users] Re: newbies should neither be seen nor heard, Cameron Patrick, 2004/10/15
- [Gnu-arch-users] Re: newbies should neither be seen nor heard, Matthieu Moy, 2004/10/15
- [Gnu-arch-users] Re: newbies should neither be seen nor heard, Miles Bader, 2004/10/15
- [Gnu-arch-users] Re: newbies should neither be seen nor heard, Matthieu Moy, 2004/10/15
- Re: [Gnu-arch-users] Re: newbies should neither be seen nor heard, Dustin Sallings, 2004/10/15
- Re: [Gnu-arch-users] Re: newbies should neither be seen nor heard, Rodrigo Bernardo Pimentel, 2004/10/15
- [Gnu-arch-users] Timing each command,
Zenaan Harkness <=
- Re: [Gnu-arch-users] Re: newbies should neither be seen nor heard, Mikhael Goikhman, 2004/10/15
- [Gnu-arch-users] Re: Re: newbies should neither be seen nor heard, John S. Yates, Jr., 2004/10/15
- [Gnu-arch-users] Barriers to Adoption: exponential userbase size increases, Zenaan Harkness, 2004/10/18
- [Gnu-arch-users] Re: Barriers to Adoption: exponential userbase size increases, Miles Bader, 2004/10/18
- Re: [Gnu-arch-users] Barriers to Adoption: exponential userbase size increases, Thomas Lord, 2004/10/18
- Re: [Gnu-arch-users] Barriers to Adoption: exponential userbase size increases, Dustin Sallings, 2004/10/18
- Re: [Gnu-arch-users] Barriers to Adoption: exponential userbase size increases, Thomas Lord, 2004/10/18
- Re: [Gnu-arch-users] Barriers to Adoption: exponential userbase size increases, Zenaan Harkness, 2004/10/18
- Re: [Gnu-arch-users] Barriers to Adoption: exponential userbase size increases, Zenaan Harkness, 2004/10/18
- Re: [Gnu-arch-users] Barriers to Adoption: exponential userbase size increases, Adrian Irving-Beer, 2004/10/18