public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* time
@ 2005-07-07 11:14 raja
  2005-07-07 11:49 ` time Paolo Ornati
  0 siblings, 1 reply; 4+ 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] 4+ messages in thread

* Re: time
  2005-07-07 11:14 time raja
@ 2005-07-07 11:49 ` Paolo Ornati
  0 siblings, 0 replies; 4+ 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] 4+ messages in thread

* time
@ 2005-08-25  4:24 raja
  2005-08-25  8:11 ` time Bernd Petrovitsch
  0 siblings, 1 reply; 4+ 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] 4+ messages in thread

* Re: time
  2005-08-25  4:24 time raja
@ 2005-08-25  8:11 ` Bernd Petrovitsch
  0 siblings, 0 replies; 4+ 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] 4+ messages in thread

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-25  4:24 time raja
2005-08-25  8:11 ` time Bernd Petrovitsch
  -- strict thread matches above, loose matches on Subject: below --
2005-07-07 11:14 time raja
2005-07-07 11:49 ` time Paolo Ornati

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox