Greetings, I want to run a command and after its execution needs to know its timing statistics like elapsed time etc. Can anyone help me on this? TIA
Greetings, I want to run a command and after its execution needs to know its timing statistics like elapsed time etc. Can anyone help me on this? TIA
thanks for the reply matt. I looked into it. Can you tell me how to implement it properly and what are the statistics that actually it gives?
In a console window run the command man time That should give you an idea how to run it. --
That will depend on whether you use a shell's built-in command or an external utility. At a shell prompt, type "type time" (without the quotation marks). If it tells you that it is a shell keyword or builtin, use "help time" or "time --help", depending on which shell you use. If it is an external command, such as /usr/bin/time, type "man time". -- Chris F.A. Johnson, author | < http://www.**--****.com/ > Shell Scripting Recipes: | My code in this post, if any, A Problem-Solution Approach | is released under the 2005, Apress | GNU General Public Licence
Hi, I implemented the same. But, I used the external /usr/bin/time for this to find the elapsed time manually. (GNU time utility is not available on my machine and i shouldn't use too) (time -d option is not available on machines time utility) I execute the above said two commands and I didn't get any thing from the below output's. # time --help ksh: --help: not found. real 0m0.06s user 0m0.00s sys 0m0.00s ------------------- # help time If available, you can refer to the Base Document Library for general assistance. Some basic Commands are: man -k keyword - lists commands relevant to a keyword man command - prints out the manual pages for a command cat - concatenates files (and just prints them out) vi - text editor ls - lists contents of directory mail - sends and receives mail passwd - changes login password sccshelp - views information on the Source Code Control System smit - system management interface tool tset - sets terminal modes who - who is on the system write - writes to another user To find programs about mail, use the command: man -k mail and print out the man command documentation via: man mail You can log out of the system by typing: exit ------------------------- How can utilise the shell's built-in command to get the start time, end time and elapsed time? Thanks, an
On 29 Mar 2006 07:54:37 -0800, anju date; time yourcommand; date -- Be not anxious about what you have, but about what you are. -- Pope St. Gregory I
In article < XXXX@XXXXX.COM >, *SIGH* =reading= counts. the prior note (that you _didn't_ quote any of) said to try 'man time'. *not* 'help time'. Just like the 2nd 'hint' in the "basic commands" description that you did quote. Repeating: 'reading counts'. Even on AIX.
1.gprof needs static link to check time?
2.Timmytroll needs to find a hobby (was: Roy needs to learn time management)
Tim Smith wrote: > RoyRoyRoyRoyRoyRoyRoyRoyRoyRoyRoyRoyRoyRoyRoy > RoyRoyRoyRoyRoyRoyRoyRoyRoyRoyRoyRoyRoyRoyRoy > RoyRoyRoyRoyRoyRoyRoyRoyRoyRoyRoyRoyRoyRoyRoy > RoyRoyRoyRoyRoyRoyRoyRoyRoyRoyRoyRoyRoyRoyRoy Zzzzzzzzz -- Regards, [tv] Owner/proprietor, Trollus Amongus, LLC ...Golden Rule: He who has the gold makes the rules.
I tried to find a way to get real time cpu usage (not only per process but also per thread). top and ps are not able to show this information... kernel 2.6, nptl. Is there other method or do I need to grep through /proc and parse it? Thanks in advance for any ideas.
4.NTP Jitter Statistics - time goes backwards?
XXXX@XXXXX.COM (Roy) writes: > I understand the output of the NTP jitter program correctly, it looks > like the time on my system jumps backwards about 0.02 percent of the Known problem. Unknown reason (or it would have been fixed already). In /sys/kern/kern_synch.c you'll find: #if 0 printf("time is not monotonic! " "tv=%ld.%06ld, runtime=%ld.%06ld\n", tv.tv_sec, tv.tv_usec, runtime.tv_sec, runtime.tv_usec); #endif Enable the printf you'll find the message in your logs. // marc
5.[PATCH 5/9] device-mapper disk statistics: timing
6. [RFC] [Patch 3/4] statistics: sets of statistics in single file
7. [RFC] [Patch 1/3] readahead statistics slimmed down, statistics prereq
8. [Patch] statistics: simplify statistics' debugfs read functions
Users browsing this forum: No registered users and 8 guest