Skip to content

Instantly share code, notes, and snippets.

@Nephos
Created May 12, 2016 13:05
Show Gist options
  • Save Nephos/c8e9aae4bff09ad8540a12c1297eaf81 to your computer and use it in GitHub Desktop.
Save Nephos/c8e9aae4bff09ad8540a12c1297eaf81 to your computer and use it in GitHub Desktop.
#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