ultimatepp/bazaar/OpenMP_demo/miscellaneous.cpp
koldo acb4ad30df OpenMP_demo: New package
git-svn-id: svn://ultimatepp.org/upp/trunk@9391 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-01-10 16:47:09 +00:00

7 lines
No EOL
156 B
C++

#include <OpenMP_demo/OpenMP_demo.h>
double timeIt(void (*fun)()) {
double timeh = GetTickCount();
fun();
return (GetTickCount() - timeh)/1000.;
}