Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

CPP

Name: Anonymous 2011-11-27 10:04

Hi,

is it a good practice to write this #def in cpp?

#define print(X) std::cout<<X<<std::endl

so that it can be used as:

print("what " << "ever" << " I " << "want");

btw.. how do I insert sniplet of code here?

Name: Anonymous 2011-11-27 12:02

>>32
No OS I know of fiddle with the TSC on context switch.
Exactly. Which means that TSC ends up being polluted by the number of cycles elapsed from executing the code to handle the context switch, or other interrupt handlers, resulting in an inaccurate reading.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List