All of lore.kernel.org
 help / color / mirror / Atom feed
* Time
@ 2003-03-07 10:05 Aman
  2003-03-07 17:03 ` Time Conn Clark
  0 siblings, 1 reply; 11+ messages in thread
From: Aman @ 2003-03-07 10:05 UTC (permalink / raw)
  To: linuxppc embedded


Hi

Can anybody suggest the best way to calculate the time taken by an
application, running on PPC 440.

Thanking you in advance
regards
Aman


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: Time
@ 2003-03-07 10:17 "Callebaut, Benoît"
  2003-03-07 10:30 ` Time Samuel Ortiz
  0 siblings, 1 reply; 11+ messages in thread
From: "Callebaut, Benoît" @ 2003-03-07 10:17 UTC (permalink / raw)
  To: Linuxppc-Embedded (E-mail)


In user mode, you can use top. Otherwise in the program, get_time_of_day or
in kernel get_jiffies must work

-----Original Message-----
From: Aman [mailto:aman@mistralsoftware.com]
Sent: Friday, March 07, 2003 11:05 AM
To: linuxppc embedded
Subject: Time



Hi

Can anybody suggest the best way to calculate the time taken by an
application, running on PPC 440.

Thanking you in advance
regards
Aman


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: Time
  2003-03-07 10:17 Time "Callebaut, Benoît"
@ 2003-03-07 10:30 ` Samuel Ortiz
  0 siblings, 0 replies; 11+ messages in thread
From: Samuel Ortiz @ 2003-03-07 10:30 UTC (permalink / raw)
  To: =?X-UNKNOWN?Q?Callebaut=2C_Beno=EEt?=, aman; +Cc: Linuxppc-Embedded (E-mail)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; charset=X-UNKNOWN, Size: 646 bytes --]


In userland, calling "time your_app" helps too.

Cheers,
Samuel


On Fri, 7 Mar 2003, [iso-8859-1] "Callebaut, Benoît" wrote:

>
> In user mode, you can use top. Otherwise in the program, get_time_of_day or
> in kernel get_jiffies must work
>
> -----Original Message-----
> From: Aman [mailto:aman@mistralsoftware.com]
> Sent: Friday, March 07, 2003 11:05 AM
> To: linuxppc embedded
> Subject: Time
>
>
>
> Hi
>
> Can anybody suggest the best way to calculate the time taken by an
> application, running on PPC 440.
>
> Thanking you in advance
> regards
> Aman
>
>
>


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Time
  2003-03-07 10:05 Time Aman
@ 2003-03-07 17:03 ` Conn Clark
  0 siblings, 0 replies; 11+ messages in thread
From: Conn Clark @ 2003-03-07 17:03 UTC (permalink / raw)
  To: Aman; +Cc: May Ling List


Aman wrote:
> Hi
>
> Can anybody suggest the best way to calculate the time taken by an
> application, running on PPC 440.
>
> Thanking you in advance
> regards
> Aman
>
>
>

There is a program called 'time' . It is used time and gather statistics
of a program. See the man page.


Good Luck

	Conn

--

*****************************************************************
   If you live at home long enough, your parents will move out.
  (Warning they may try to sell their house out from under you.)
*****************************************************************

Conn Clark
Engineering Stooge				clark@esteem.com
Electronic Systems Technology Inc.		www.esteem.com


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* RE: Time
@ 2003-03-07 17:06 Kerl, John
  0 siblings, 0 replies; 11+ messages in thread
From: Kerl, John @ 2003-03-07 17:06 UTC (permalink / raw)
  To: 'Conn Clark', Aman; +Cc: May Ling List


A stopwatch or the time command will tell you the
total time.  But if you want to find out *where*
the time is being spent, please don't forget gprof.
(I don't know if an embedded version is available.)

-----Original Message-----
From: Conn Clark [mailto:clark@esteem.com]
Sent: Friday, March 07, 2003 10:04 AM
To: Aman
Cc: May Ling List
Subject: Re: Time



Aman wrote:
> Hi
>
> Can anybody suggest the best way to calculate the time taken by an
> application, running on PPC 440.
>
> Thanking you in advance
> regards
> Aman
>
>
>

There is a program called 'time' . It is used time and gather statistics
of a program. See the man page.


Good Luck

	Conn

--

*****************************************************************
   If you live at home long enough, your parents will move out.
  (Warning they may try to sell their house out from under you.)
*****************************************************************

Conn Clark
Engineering Stooge				clark@esteem.com
Electronic Systems Technology Inc.		www.esteem.com


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Time
@ 2004-05-02 14:27 Kenneth Dalbjerg
  2004-05-03  6:52 ` Time Fabrice MARIE
  0 siblings, 1 reply; 11+ messages in thread
From: Kenneth Dalbjerg @ 2004-05-02 14:27 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 277 bytes --]

Hello

 

Iam trying to get the Time module to work.

 

Iam using Kernel 2.6.4  on the firewall.

 

And iam trying to patch the kernel with patch-o-matic with ./runme base, but
I don't get a choice if I want to install the time module?

 

Why?

 

Regards Kenneth Dalbjerg


[-- Attachment #2: Type: text/html, Size: 3236 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Time
  2004-05-02 14:27 Time Kenneth Dalbjerg
@ 2004-05-03  6:52 ` Fabrice MARIE
  0 siblings, 0 replies; 11+ messages in thread
From: Fabrice MARIE @ 2004-05-03  6:52 UTC (permalink / raw)
  To: netfilter; +Cc: Kenneth Dalbjerg


Hi,

On 02 May 2004 pm 22:27, Kenneth Dalbjerg wrote:
> Hello
> Iam trying to get the Time module to work
> Iam using Kernel 2.6.4  on the firewall.
> And iam trying to patch the kernel with patch-o-matic with ./runme base, but
> I don't get a choice if I want to install the time module?
> Why?

Because I need to port it to patch-o-matic-ng first, when I manage to find some time.
Hopefully should find time this week.

Cheers,

Fabrice.
--
Fabrice MARIE

"Silly hacker, root is for administrators"
       -Unknown


^ permalink raw reply	[flat|nested] 11+ messages in thread

* time
@ 2005-07-07 11:14 raja
  2005-07-07 11:49 ` time Paolo Ornati
  0 siblings, 1 reply; 11+ messages in thread
From: raja @ 2005-07-07 11:14 UTC (permalink / raw)
  To: linux-kernel

would you please tell how to caliculate the time taken to execute a c 
program in unix environment.
Thanking you,
Nagaraju.V

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: time
  2005-07-07 11:14 time raja
@ 2005-07-07 11:49 ` Paolo Ornati
  0 siblings, 0 replies; 11+ messages in thread
From: Paolo Ornati @ 2005-07-07 11:49 UTC (permalink / raw)
  To: raja; +Cc: linux-kernel

On Thu, 07 Jul 2005 16:44:53 +0530
raja <vnagaraju@effigent.net> wrote:

> would you please tell how to caliculate the time taken to execute a c 
> program in unix environment.

raja, this has nothing to do with Linux Kernel.

PS: see "man time"

-- 
	Paolo Ornati
	Linux 2.6.12.2 on x86_64

^ permalink raw reply	[flat|nested] 11+ messages in thread

* time
@ 2005-08-25  4:24 raja
  2005-08-25  8:11 ` time Bernd Petrovitsch
  0 siblings, 1 reply; 11+ messages in thread
From: raja @ 2005-08-25  4:24 UTC (permalink / raw)
  To: Linux Kernel Mailing List

Hi,
     Is There Any function in c  to caliculate the exact time taken to 
execute block of code(in micro sec and milli  sec and minuits and hours).
thanking you,
raja

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: time
  2005-08-25  4:24 time raja
@ 2005-08-25  8:11 ` Bernd Petrovitsch
  0 siblings, 0 replies; 11+ messages in thread
From: Bernd Petrovitsch @ 2005-08-25  8:11 UTC (permalink / raw)
  To: raja; +Cc: Linux Kernel Mailing List

On Thu, 2005-08-25 at 09:54 +0530, raja wrote:
[...]
>      Is There Any function in c  to caliculate the exact time taken to 
> execute block of code(in micro sec and milli  sec and minuits and hours).
> thanking you,

Do you mean system-time, user-space-time or the time it took in the real
world?
And apart from the fact that this is a C programming question and not
directly related to the Linux kernel since it is a user-space thingy,
you probably want to use times(2) two times and calculate the
difference.

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-08-25  8:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-07 10:05 Time Aman
2003-03-07 17:03 ` Time Conn Clark
  -- strict thread matches above, loose matches on Subject: below --
2003-03-07 10:17 Time "Callebaut, Benoît"
2003-03-07 10:30 ` Time Samuel Ortiz
2003-03-07 17:06 Time Kerl, John
2004-05-02 14:27 Time Kenneth Dalbjerg
2004-05-03  6:52 ` Time Fabrice MARIE
2005-07-07 11:14 time raja
2005-07-07 11:49 ` time Paolo Ornati
2005-08-25  4:24 time raja
2005-08-25  8:11 ` time Bernd Petrovitsch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.