time
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
On Thu, 2005-08-25 at 09:54 +0530, raja wrote:
[...]
Quoted 3 lines
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
Signature · 3 lines
Firmix Software GmbH http://www.firmix.at/
mobil: +43 664 4416156 fax: +43 1 7890849-55
Embedded Linux Development and Services