I mainly work with C #, and I often use TracePoints (breakpoints with the setting "When hit ..."), printing the current time using {DateTime.Now.ToString(HH:mm:ss.fff")} . I know that this is not very accurate (and I know the Stopwatch class), but it is often useful for a brief overview of what happens when. In addition, it is quite easy to create this output, and it does not require compilation.
Now I am increasingly working with (native) C ++ code, and I would like to get the same result. However, it is not possible to use C # code in TracePoints in C ++ code files. Therefore, I am looking for an equivalent single-line layer in C ++ that can be used in TracePoints. Or is there another way to display current time using TracePoints?
BTW: the time output should at least have accuracy in milliseconds!
c ++ time visual-studio visual-studio-2012
gehho
source share