      19-25    - TBench  Report().  
 21  result ;   - 
Time().   22-23    ,     
  ,      . (     
,    .)   24  
    .             
  TBench,                  - BenchmarkO 
        .   
 - ReportO.   14.3    
,          . 
   BENCH.CPP  BENCH.CPP     
  TCLASDBS.LIB,     TTimer. 
    ,       
TURBOC.CFG,    : 

    3B-IC:\c 45\include 
    -LC:\c 45\lic 

        DOS      
 BENCH.CPP    TBENCH.CPP,   TBench. 

         teen h cen h cidss.lic 

           TBENCH  BENCH  
      45  BIDSS.LIB,  
     TTimer.   S  BIDSS 
  (small)  ,     DOS  
. (  19      
     DOS  WINDOWS).   , 
 TTimer,    TBench,     
,    WINDOWS.       
   DOS.	

     

        TBENCH   - TBENCH. 
(    ).     ,  
  TBENCH GPP,     DOS  make 
-ftbench.mak  Borland C++ MAKE EXE       
  ,  , ,   
    TBENCH.. (,  18  ,   
    ) 

     14.3. TBENCH.CPP (  TBen h) 

    1:   #include <iostream.h> 
    2:   #include <stdio.h> 
    3:   #include "cen h.h" 
    4: 
    5:    #define NUMTESTS 20000 
    6: 
    7:   void Testfn(void); 
    8: 
    9:   main() 
   10:    { 
   11:       TBench test; 
    12: 
    13:	cout  "Testing sprintf() fun tion\n" ;
    14:	test.Benchmark(NUMTESTS,   Testfn); 
    15:	test. Report();                   
    16:	return 0;                            
    17:   } 
    18:	
    19:	void Testfn(void)             
    20:	{                                                                
    21:	 char cuffer[80]; 
    22:	double d = 3.14159; 
    23: 
    24:	sprintf(cuffer,   "%1f".  d); 
    25:        } 


      11    TBench   test.  C++ 
    (    
 Timer),    ,   test   
 , ,   .   
    - Benchraark() ( 14)  
    


     14. -  349 
