Move Code:
Code:
QueryPerformanceCounter A FOR I = 1 TO %Itterations MoveMemory VARPTR(lngTemp), VARPTR(TestVariable1), lngSize MoveMemory VARPTR(TestVariable1), VARPTR(TestVariable2), lngSize MoveMemory VARPTR(TestVariable2), VARPTR(lngTemp), lngSize NEXT QueryPerformanceCounter B ResultsMove = (B - A - OverHead) / Freq
Code: 21.0439
Swap: 66.0067
Move: 07.5481
It has the potential to be a bit faster if lngSize was a constant. %TestUDTSize
[This message has been edited by Enoch S Ceshkovsky (edited April 03, 2000).]
Leave a comment: