On Fri, 05 Oct 2007 09:14:01 -0000, in comp.lang.c , Haneef
<haneef0786@gmail.comwrote:
Quote:
>I am talking about the calendar time. Its just that time is to be used
>so many times
Why? This sounds like a design flaw.
Quote:
>(not to mention at different points of time) that system
>call would be expensive.
Yes, but have you actually /measured/ this, to prove it is a real
problem? Bear in mind that many many real applications out in the real
world use timestamps, and its generally isn't an issue.
Quote:
>So many calls when only one can suffice is
>definitely not recommended.
It might *feel* like a bad idea, but you don't seem to have any
evidence that it really is. Remember the Three Laws of Optimisation.
Quote:
>Hey, I am just a newbie.
Thats ok.
--
Mark McIntyre
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan