Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Simple Benchmarking Macro
- Copyright © 2011 RyDeR`
- */
- #define BENCH(%0,%1) \
- for(new __i, __j = GetTickCount(); ; __i++) \
- if((GetTickCount() - __j) > (%0)) { \
- printf(" \n [Benchmark] '" %1 "' executed about %.02f times/ms. \n", floatdiv(__i, (%0))); \
- break; \
- } else
- /*
- public OnFilterScriptInit() {
- BENCH(1000, "floatpower") {
- floatpower(5.0, 2.0);
- }
- return 1;
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement