How to track / display timestamp in Visual C ++ 2010 during debugging

guys, VC2010 provides the debugging tool "trace", which allows you to display not only the values โ€‹โ€‹of variables in the output window, but also some built-in arguments, such as TID TNAME, PID, etc.

I want to make a trace to display the timestamp also, is it possible that VS VS2010?

Thanks!

+6
source share
2 answers

You can use the predefined variable $ TICK , info @ MSDN

+2
source

You can output the result of an expression using curly braces.

If you

int x; x=10; ... 

and you set the trace point after x = 10 with the expression x = {x}, it will output x = 10 to your output window.

Just put an expression that gives you a timestamp inside curly braces, for example timestamp = {time (0)} (depending on which API you use to get the time ....

+1
source

Source: https://habr.com/ru/post/886222/


All Articles