opcnt/2—count the operations of an event

The opcnt/2  function counts the operations of an event. The syntax for this function is as follows:

opcnt($EVENT,$COUNT)

opcnt/2 arguments

Argument

Mode

Type

Description

$EVENT

Input

OBJECT

Specifies the event for which operations are to be counted

$COUNT

Output

INTEGER

Number of operations attached to the event

Use the opcnt/2 function to count the operations that are attached to event $EVENT and return the number in $COUNT.

opcnt/2 example

opcnt($E,$NR_OF_OPS);
Was this page helpful? Yes No Submitting... Thank you

Comments