added timestamp to measure startup time

This was SVN commit r430.
This commit is contained in:
janwas 2004-06-08 20:36:17 +00:00
parent 3c220be8ef
commit 921463e55a

View File

@ -206,10 +206,21 @@ static inline void pre_main_init()
}
extern u64 rdtsc();
extern u64 PREVTSC;
u64 PREVTSC;
int entry()
{
#ifdef _MSC_VER
u64 TSC=rdtsc();
debug_out(
"----------------------------------------\n"\
"ENTRY\n"\
"----------------------------------------\n");
PREVTSC=TSC;
#endif
pre_libc_init();
return WinMainCRTStartup(); // calls _cinit, and then WinMain
}