linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* time system call expensive?
@ 2011-07-21  4:41 Vadiraj
  2011-07-21 11:20 ` Michal Nazarewicz
  0 siblings, 1 reply; 4+ messages in thread
From: Vadiraj @ 2011-07-21  4:41 UTC (permalink / raw)
  To: linux-c-programming

Hi All,

I'm evaluating time consumed by method. I'm using time(NULL) system
call to capture time before and after the call to the function.
Just wanted to know if this has a considerable performance hit? For
all I believe time syscall is quite optimized and should not really be
matter of concern.

Please let me know if someone have evaluated time(NULL) system over head..

Assuming the method I'm evaluating is a frequently called method.


Thanks in advance.

Regards,
Vadi

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

end of thread, other threads:[~2011-07-22  4:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-21  4:41 time system call expensive? Vadiraj
2011-07-21 11:20 ` Michal Nazarewicz
2011-07-21 11:46   ` Akos Marton
2011-07-22  4:57     ` Vadiraj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).