version 1.24, 2006/08/09 21:12:42
|
version 1.25, 2006/08/22 18:29:36
|
|
|
// | // |
//============================================================================== | //============================================================================== |
// | // |
// Author: Arthur Pichlkostner |
|
// (checked in: Markus Mueller sedgewick_de@yahoo.de) |
|
// |
|
// Modified By: |
|
// |
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#ifndef STATISTICAL_DATA_H |
#ifndef Pegasus_StatisticalData_h |
#define STATISTICAL_DATA_H |
#define Pegasus_StatisticalData_h |
| |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
#include <iostream> | #include <iostream> |
|
|
#include <Pegasus/Common/CIMProperty.h> | #include <Pegasus/Common/CIMProperty.h> |
#include <Pegasus/Common/CIMInstance.h> | #include <Pegasus/Common/CIMInstance.h> |
#include <Pegasus/Common/CIMDateTime.h> | #include <Pegasus/Common/CIMDateTime.h> |
|
#include <Pegasus/Common/CIMMessage.h> |
#include <Pegasus/Common/Mutex.h> | #include <Pegasus/Common/Mutex.h> |
#include <Pegasus/Common/Time.h> | #include <Pegasus/Common/Time.h> |
| |
|
|
#define STAT_BYTESSENT | #define STAT_BYTESSENT |
#endif | #endif |
| |
|
class PEGASUS_COMMON_LINKAGE StatProviderTimeMeasurement |
|
{ |
|
public: |
|
StatProviderTimeMeasurement(CIMMessage* message) |
|
: _message(message) |
|
{ |
|
#ifndef PEGASUS_DISABLE_PERFINST |
|
_message->setStartProviderTime(TimeValue::getCurrentTime()); |
|
#endif |
|
} |
|
|
|
~StatProviderTimeMeasurement() |
|
{ |
|
#ifndef PEGASUS_DISABLE_PERFINST |
|
_message->endProvider(); |
|
#endif |
|
} |
|
|
|
private: |
|
StatProviderTimeMeasurement(); |
|
StatProviderTimeMeasurement(const StatProviderTimeMeasurement&); |
|
StatProviderTimeMeasurement& operator=(const StatProviderTimeMeasurement&); |
|
|
|
CIMMessage* _message; |
|
}; |
|
|
class PEGASUS_COMMON_LINKAGE StatisticalData | class PEGASUS_COMMON_LINKAGE StatisticalData |
{ | { |
public: | public: |