CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
performance_counter.h
1
2#ifndef _performance_counter_h_
3#define _performance_counter_h_
4
5#include <system/object.h>
6
7#include "fwd.h"
8#include "system/string.h"
9
10
11namespace System
12{
13namespace Diagnostics
14{
15
20class ASPOSECPP_SHARED_CLASS PerformanceCounter : public System::Object // Component, ISupportInitialize
21{
22public:
24 ASPOSECPP_SHARED_API PerformanceCounter();
26 ASPOSECPP_SHARED_API PerformanceCounter(const String& category_name, const String& counter_name);
28 ASPOSECPP_SHARED_API PerformanceCounter(const String& category_name, const String& counter_name, const String& instance_name, const String& machine_name);
29
31 ASPOSECPP_SHARED_API float NextValue();
33 ASPOSECPP_SHARED_API void Close();
34};
35
36}
37}
38#endif
Dummy class for PerformanceCounter-using translated code to compile. Objects of this class should onl...
Definition: performance_counter.h:21
PerformanceCounter(const String &category_name, const String &counter_name, const String &instance_name, const String &machine_name)
Creates performance counter of specific category and instance name.
float NextValue()
Gets next measured value.
PerformanceCounter(const String &category_name, const String &counter_name)
Creates performance counter of specific category.
void Close()
Stops all performance counting operations.
PerformanceCounter()
Creates performance counter.
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
Definition: db_command.h:9