mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 04:19:30 +02:00
* write timing to stderr
git-svn-id: trunk@11091 -
This commit is contained in:
parent
a53a234189
commit
5c1c5f2aad
@ -7,7 +7,7 @@ unit timer;
|
||||
|
||||
var
|
||||
verbosetimer : boolean = true;
|
||||
|
||||
|
||||
procedure start;
|
||||
procedure stop;
|
||||
function MSec:cardinal;
|
||||
@ -46,12 +46,12 @@ unit timer;
|
||||
etime:=gt;
|
||||
s:=etime-stime;
|
||||
if verbosetimer then
|
||||
write(s div 1000,'.',s mod 1000,' Seconds');
|
||||
write(stderr,s div 1000,'.',s mod 1000,' Seconds');
|
||||
end;
|
||||
|
||||
function MSec:cardinal;
|
||||
begin
|
||||
Msec:=etime-stime;
|
||||
end;
|
||||
|
||||
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user