The following piece of code is used to print the time in the logs:
#define PRINTTIME() struct tm * tmptime; time_t tmpGetTime; time(&tmpGetTime); tm
You need a timer with a higher resolution in order to capture milliseconds. Try this:
int cloc = clock(); //do something that takes a few milliseconds cout << (clock() - cloc) << endl;
This is of course dependent on your OS.