Changed functions - works with GCC now aswell

Changed functions for measuring time, works with all standard compilers
now. A bit less precise than it was with only Microsoft c++  compiler
version but not more than a few miliseconds.