If you run these two code segments, you will see that PB/DLL is doing the test in 3/4 the time that PB/CC does...
I would have thought it was the other way around....
PBCC: 8.67 seconds
PBDLL: 5.78
------------------
Scott
mailto:[email protected][email protected]</A>
I would have thought it was the other way around....
PBCC: 8.67 seconds
PBDLL: 5.78
Code:
PBDLL ' #Compile Exe #Include "win32api.inc" Function PbMain () As Long Local lTimer As Double SetPriorityClass GetCurrentProcess, %HIGH_PRIORITY_CLASS 'To speed things up a bit lTimer = Timer ! mov eax, 1000000000 deceax: ! dec eax ! jne deceax Msgbox "Elapsed time: " + Str$(Timer - lTimer) + " seconds" End Function 'PBCC ' #Compile Exe #Include "win32api.inc" Function PbMain () As Long Local lTimer As Double SetPriorityClass GetCurrentProcess, %HIGH_PRIORITY_CLASS 'To speed things up a bit lTimer = Timer ! mov eax, 1000000000 deceax: ! dec eax ! jne deceax StdOut "Elapsed time: " + Str$(Timer - lTimer) + " seconds" End Function
------------------
Scott
mailto:[email protected][email protected]</A>
Comment