|my hand written function's processing time for 1 billion swaps|
|Macro time to swap 1 billion times|
I mean, a #define is only going to be pasted into the main (in this case) when called, and nothing more.
It is a little comforting that the times seem to make more sense - with double's taking a slight amount longer to process than the int's, which was the reverse of my function. I do of course leave the door open that I'm completely wrong in my coding. It was also weird to go back and write code in C style after a full semester of C++ changing everything to classes. I much prefer classes but didn't feel something this size required it.