From: Ahmad on
Hi,

How can I calculate "elapsed time" since the start of my script as
well as "execution time" of each command. I need to use this in
writing log file.

Does anybody have good log writing procs ready to use?

Thanks,
Ahamd
From: Ahmad on
Linux

On Aug 5, 2:40 pm, "Gerald W. Lester" <Gerald.Les...(a)KnG-
Consulting.net> wrote:
> Ahmad wrote:
> > Hi,
>
> > How can I calculate "elapsed time" since the start of my script as
> > well as "execution time" of each command. I need to use this in
> > writing log file.
>
> "elapsed time" -- see the time command.
>
> "execution time" -- OS dependent, please specify OS.
>
> --
> +------------------------------------------------------------------------+
> | Gerald W. Lester, President, KNG Consulting LLC                        |
> | Email: Gerald.Les...(a)kng-consulting.net                                |
> +------------------------------------------------------------------------+

From: Harald Oehlmann on
On 5 Aug., 23:37, Ahmad <ahmad.abdulgh...(a)gmail.com> wrote:
> Hi,
>
> How can I calculate "elapsed time" since the start of my script as
> well as "execution time" of each command. I need to use this in
> writing log file.

For execution time of tcl commands or procedures, what do you think
about the wiki pages:
"Time command - see bottom for general ideas" http://wiki.tcl.tk/734
"Frameworks to time parts of the program" http://wiki.tcl.tk/15193