From 921463e55a1db96b71cef62008a858cea6d28701 Mon Sep 17 00:00:00 2001 From: janwas Date: Tue, 8 Jun 2004 20:36:17 +0000 Subject: [PATCH] added timestamp to measure startup time This was SVN commit r430. --- source/lib/sysdep/win/win.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/source/lib/sysdep/win/win.cpp b/source/lib/sysdep/win/win.cpp index 15843330fe..90e531d4fe 100755 --- a/source/lib/sysdep/win/win.cpp +++ b/source/lib/sysdep/win/win.cpp @@ -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 }