Search Results for

    Show / Hide Table of Contents

    Class PCounter

    Holds two performance counters, one process instance and one global instance.

    Inheritance
    object
    PCounter
    Namespace: ABB.Robotics
    Assembly: ABB.Robotics.Controllers.PC.dll
    Syntax
    public class PCounter

    Constructors

    View Source

    PCounter(string)

    Creates a new performance counter object.

    Declaration
    public PCounter(string name)
    Parameters
    Type Name Description
    string name

    The counter name.

    Properties

    View Source

    GlobalValue

    Gets the global value. (For test)

    Declaration
    public long GlobalValue { get; }
    Property Value
    Type Description
    long
    View Source

    ProcessValue

    Gets the process value. (For test)

    Declaration
    public long ProcessValue { get; }
    Property Value
    Type Description
    long

    Methods

    View Source

    Decrement()

    Increments both counters.

    Declaration
    public void Decrement()
    View Source

    Increment()

    Increments both the process and global counters.

    Declaration
    public void Increment()

    Operators

    View Source

    operator --(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.

    View Source

    operator ++(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.

    • View Source
    In this article
    Back to top Copyright © 2026 ABB Robotics