Some time ago I was trying to measure a start-up time of my c programs, I mean the exact time between the moment of running a program (from console or from gui shell) and the time where first 'commands' in my main() function are executed.
Then I do not find a convenient way of doing that it windows. The exact time of running my commands is no problem (QueryPerformanceCounter) but I do not found the way of getting the exact time where program received a command to run (from within this program - and that exact time is need for me, I mean the time before even program image and dlls are loaded - becouse this time is physical, stright related to delay of running my game and that is what I would like care to optymise)
Could someone help with that? (Does other systems (linux/mac) have such problem with that I found on windows :/ ) ?
The second part of this question - what I could do to hard optymize this startup time, I think that lowering the size of images needed to be load by loader may count (it is exe size and sizes of ar dlls it depends on) but what else?
thanx fot the answer
Edited by fir, 14 August 2013 - 03:22 AM.