  TTimer,       
,       , 
 -  ,    , . 

     

       TTimer   (      )     Borland   C++   31         Timer 
  (      )        BI_OLDNAMES    #define 
  ,         
  -     ,   
,     ,           
  .     TTimer        ( 
         
,          ),           
        ,   DOS,    WINDOWS. 

       ,        
 ,  TTimer     TIMER.H 
 :

    class TTimer
    { 
     public:
       TTimer();	//         
       void Start();         //    
       void Stop();	//    
       void Reset();	//   
       int Status();       -  // 0==  ; 1==   
      double Time();         //     
      static double Resolution() ; // .  15 
    private: 
      .......
  }
 
     

     -    15.      
 ; - resolution()   TTimer.	

    ,    Borland C++,     
, ,    TTimer   
C:\BC45\INCLUDE\CLASSLIB.     T1MER.CPP  
 C:\BC45\SOURCE\CLASSLIB.         
  ,    TTimer. 
    ,     TTimer    
,        .  
     DOS,   ,    
TIMER.CPP (    C:\BC45\^OURCE\CLASSLIB),    
 (   ,  ,   ) :

    bcc -DTEST_TIMER -DBI_OLDNAMES -IC:\BC45\INCLUDE timer 

      TEST_TIMER     -D  
 main()   TIMER.CPP,       
.    BI_OLDNAMES ,   , 
,     3.1 , ,      
 Borland C++ 4.0.         
  -I    ,         
 . 
         TIMER.     
 : 

    Resolution:   8.39e-07 
     ms.,  actual time	=	0.024674	seconds. 
    100 ms.,  actual time	=	0.127362	seconds. 
    200 ms.,  actual time	=	0.222327	seconds. 
    300 ms.,  actual time	=	0.314453	seconds. 
    400 ms.,  actual time	=	0.393548	seconds. 
    500 ms.,  actual time	=	C.465171	seconds. 
    600 ms.,-actual time	=	0.630901	seconds. 
    700 ms.,  actual time	=	0.738385	seconds. 
    800 ms.,   actual time	=	0.775155	seconds. 
    900 ms.,   actual tin	=	0.836996	seconds. 

      ,    TIMER   , 
      ,   ,   
    . 
    

     14. -  347 
