Re: time

From: Bernd Petrovitsch
Date: Thu Aug 25 2005 - 03:12:00 EST


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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/