Question:
When we run an exe(assume by double clicking), where all the time is spent before it actually starts executing ?
a) Loading of the exe onto the memory
b) ?
c) ?
Background of the question:
I am profiling the execution of an application(App.exe) and trying to improve its performance. I have a test that does something like:
startTime = beginTimer()
"start App.exe"
"wait till a window becomes responsive" - App.exe executes during this time and launches a window
endTime = endTimer()
outputValue = endTime - startTime
I have added time stamps at different places in App.exe to obtain the execution time spent at different phases and also to obtain the total execution time of App.exe.
I notice that "outputValue" is around 5 secs, where as the total time spent in the execution of App.exe(obtained from time stamps in the exe) is around 2 secs.
It seems to me that around 3 secs was already spent before App.exe even actually started executing. The size of the exe is around 2700 KB.