(file) Return to StatisticalData.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/StatisticalData.h between version 1.28 and 1.29

version 1.28, 2006/08/25 17:40:09 version 1.29, 2006/09/08 17:25:01
Line 52 
Line 52 
 #ifndef PEGASUS_DISABLE_PERFINST #ifndef PEGASUS_DISABLE_PERFINST
  
 #define STAT_GETSTARTTIME \ #define STAT_GETSTARTTIME \
 TimeValue startTime = TimeValue::getCurrentTime();  Uint64 serverStartTimeMicroseconds = \
       TimeValue::getCurrentTime().toMicroseconds();
  
 #define STAT_SERVERSTART \ #define STAT_SERVERSTART \
 request->setStartServerTime(startTime);  request->setServerStartTime(serverStartTimeMicroseconds);
  
 #define STAT_SERVEREND \ #define STAT_SERVEREND \
 response->endServer();\ response->endServer();\
Line 95 
Line 96 
         : _message(message)         : _message(message)
     {     {
 #ifndef PEGASUS_DISABLE_PERFINST #ifndef PEGASUS_DISABLE_PERFINST
         _message->startProvider();          _startTimeMicroseconds = TimeValue::getCurrentTime().toMicroseconds();
 #endif #endif
     }     }
  
     ~StatProviderTimeMeasurement()     ~StatProviderTimeMeasurement()
     {     {
 #ifndef PEGASUS_DISABLE_PERFINST #ifndef PEGASUS_DISABLE_PERFINST
         _message->endProvider();          _message->setProviderTime(
               TimeValue::getCurrentTime().toMicroseconds() -
                   _startTimeMicroseconds);
 #endif #endif
     }     }
  
Line 112 
Line 115 
     StatProviderTimeMeasurement& operator=(const StatProviderTimeMeasurement&);     StatProviderTimeMeasurement& operator=(const StatProviderTimeMeasurement&);
  
     CIMMessage* _message;     CIMMessage* _message;
       Uint64 _startTimeMicroseconds;
 }; };
  
 class PEGASUS_COMMON_LINKAGE StatisticalData class PEGASUS_COMMON_LINKAGE StatisticalData


Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2