Browse Source

* write timing to stderr

git-svn-id: trunk@11091 -
florian 17 years ago
parent
commit
5c1c5f2aad
1 changed files with 3 additions and 3 deletions
  1. 3 3
      tests/bench/timer.pas

+ 3 - 3
tests/bench/timer.pas

@@ -7,7 +7,7 @@ unit timer;
 
 
     var
     var
        verbosetimer : boolean = true;
        verbosetimer : boolean = true;
-       
+
     procedure start;
     procedure start;
     procedure stop;
     procedure stop;
     function MSec:cardinal;
     function MSec:cardinal;
@@ -46,12 +46,12 @@ unit timer;
          etime:=gt;
          etime:=gt;
          s:=etime-stime;
          s:=etime-stime;
 	 if verbosetimer then
 	 if verbosetimer then
-           write(s div 1000,'.',s mod 1000,' Seconds');
+           write(stderr,s div 1000,'.',s mod 1000,' Seconds');
      end;
      end;
 
 
     function MSec:cardinal;
     function MSec:cardinal;
       begin
       begin
         Msec:=etime-stime;
         Msec:=etime-stime;
       end;
       end;
-      
+
 end.
 end.