How to time the execution of a method?
- From: Robert Baker <korax1214@xxxxxxxxx>
- Date: Tue, 23 Oct 2007 23:04:41 +0100
I'm thinking of doing a game remake, and I've reduced the 60 screens
of the game from the original 256x192 bitmaps to a compressed
bytestream using a two-pass process, first shrinking each screen to
32x24 tiles and then collapsing the result further using RLE. The
remake will use a 512x384 screen.
The problem is that I have three possible algorithms to re-inflate the
screen, and I want to know which is the most efficient on average.
I've tried using the following:
function TimeMethod(x: TMethod): TDateTime;
var s,e: TDateTime;
begin
s:=Now;
x;
e:=Now;
TimeMethod:=86400*(e-s);
end;
ta:=TimeMethod(DrawA);
tb:=TimeMethod(DrawB);
tc:=TimeMethod(DrawC);
This doesn't work. Please advise.
.
- Follow-Ups:
- Re: How to time the execution of a method?
- From: alanglloyd@xxxxxxx
- Re: How to time the execution of a method?
- From: Nurax
- Re: How to time the execution of a method?
- From: Maarten Wiltink
- Re: How to time the execution of a method?
- Prev by Date: Re: HKLM\Software\Microsoft\Windows\CurrentVersion\Sha redDlls
- Next by Date: Re: HKLM\Software\Microsoft\Windows\CurrentVersion\Sha redDlls
- Previous by thread: buy more cheaper runescape gold
- Next by thread: Re: How to time the execution of a method?
- Index(es):