N
Nomen Nescio
Keith Thompson said:"A colleague and I drove our boss nuts by ..."
"A colleague and I did a drive-by on our boss, bye-bye"
Keith Thompson said:"A colleague and I drove our boss nuts by ..."
"Me ... drove (my) boss nuts" ?
Get a faster computer. It shouldn't take that long to write 100 or 200
empty lines. (Unless you have a test harness that you haven't shown
us.)
IIRC stdout is required to be unbuffered or fully buffered when an
interactive terminal, so the lines are written one at a time, and 3.8
milliseconds doesn't sound like *that* long for the overhead of actually
doing output.
IIRC stdout is required to be unbuffered or fully buffered when an
interactive terminal, so the lines are written one at a time, and 3.8
milliseconds doesn't sound like *that* long for the overhead of actually
doing output.
army1987 said:(Yes it is. I've tried it and it does take about 300 times shorter than
that on my laptop.)
On 3/3/2012 9:05 PM, Geoff wrote:
[... time / relativity ...]But when considering clocks in orbit vs. clocks on earth one has to
account for the "acceleration" of the clocks on the surface of the
earth due to gravity and the lesser acceleration of an object in orbit
where the gravity field is weaker as well as the relative velocity of
the clock on orbit.
But this analogy is completely inapplicable to a "C language paradox".
Does "for(;;" complete sooner on the system in orbit, or on the
Earth's surface?
On my system, both versions of the loop took too little time to measure
(using the "time" command).
--
Keith Thompson (The_Other_Keith) (e-mail address removed) <http://www.ghoti.net/~kst>
Will write code for food.
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.