added testgettimeofday.c which test the usage of gettimeofday()
added main-v2.cpp
better/more reasonable timing