Skip to content

Commit

Permalink
Displays loading time at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
jval1972 committed Apr 22, 2022
1 parent 3337e28 commit 9a4bec3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions d_main.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1366,13 +1366,16 @@ procedure D_DoomMain;
filename: string;
scale: integer;
_time: integer;
startloadingtime: LongWord;
s_error: string;
i: integer;
j: integer;
episodes: integer;
err_shown: boolean;
s1, s2: string;
begin
startloadingtime := I_GetTickCount;

outproc := @I_IOprintf;
wadfiles := TDSTringList.Create;

Expand Down Expand Up @@ -2074,6 +2077,10 @@ procedure D_DoomMain;
autostart := true;
end;

printf(StringOfChar('-', 21) + #13#10);
printf('Load time: %2.3f secs'#13#10, [(I_GetTickCount - startloadingtime) / 1000]);
printf(StringOfChar('-', 21) + #13#10);

p := M_CheckParm('-playdemo');
if (p <> 0) and (p < myargc - 1) then
begin
Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ Features:
- Custom defined actors (ACTORDEF)

History - Change log
--------------------
Displays loading time at startup.

--------------------
version 1.14.18.134 (20220410)
------------------------------
Expand Down

0 comments on commit 9a4bec3

Please sign in to comment.