I\'m writing c/c++ code on Windows using Visual Studio. I want to know how to calculate the start time of my process effectively. Can I just use gettimeofday()? I\'ve fou
If I understand you right you want to know what time your process started, correct? So you'll want to look into GetProcessTimes
If the process you're interested in is the current process, you can use GetCurrentProcess()
to get the process handle that you'll need to call GetProcessTimes()
this returns a pseudo-handle that you don't need to close.