Created
May 12, 2016 13:05
-
-
Save Nephos/c8e9aae4bff09ad8540a12c1297eaf81 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
class Bench1C { | |
public: static unsigned long long incr() { | |
unsigned long long a = 0; | |
for (unsigned long long i = 0; i < 999999999; i++) { | |
a = a + 1; | |
} | |
return a; | |
} | |
}; | |
int main() { | |
std::cout << Bench1C::incr() << std::endl; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment