I am running a benchmark test on a filesystem in RAM, the current test I am running takes about 0.6 seconds. To get good data I need to know exactly when the program starts and ends. The current methode give out this output: Sat May 7 19:24:46 2016, but I also need to know milliseconds. The program is executed in c++ in linux by running this command: g++ -std=c++11 2cprogram.cpp
std::time_t result = std::time(NULL);
std::cout << std::ctime(&result);