Class PCounter
Holds two performance counters, one process instance and one global instance.
Inheritance
System.Object
PCounter
Namespace: ABB.Robotics
Assembly: ABB.Robotics.Controllers.PC.dll
Syntax
public class PCounter
Constructors
PCounter(String)
Creates a new performance counter object.
Declaration
public PCounter(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The counter name. |
Properties
GlobalValue
Gets the global value. (For test)
Declaration
public long GlobalValue { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
ProcessValue
Gets the process value. (For test)
Declaration
public long ProcessValue { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Methods
Decrement()
Increments both counters.
Declaration
public void Decrement()
Increment()
Increments both the process and global counters.
Declaration
public void Increment()
Operators
Decrement(PCounter)
Decrements the counter by one.
Declaration
public static PCounter operator --(PCounter counter)
Parameters
Type | Name | Description |
---|---|---|
PCounter | counter | The counter to increment. |
Returns
Type | Description |
---|---|
PCounter | This object. |
Increment(PCounter)
This operator shall not be used to any calculations since it will always return 0.
Declaration
public static PCounter operator ++(PCounter counter)
Parameters
Type | Name | Description |
---|---|---|
PCounter | counter | The counter to increment. |
Returns
Type | Description |
---|---|
PCounter | This object. |