forked from 0ad/0ad
added timestamp to measure startup time
This was SVN commit r430.
This commit is contained in:
parent
3c220be8ef
commit
921463e55a
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user