Skip to main content

Duration

Short summary

A datatype for durations based on physical time units. It can be converted to other units with the function CNM_RecipeHandling.ConvertDuration.

Access: -

Inherits from: MetricParameter

NameTypeComment
unitDurationUnitthe time unit

Code

Declaration

TYPE Duration EXTENDS MetricParameter :
STRUCT
(* the time unit *)
unit :DurationUnit := DurationUnit.SECONDS;
END_STRUCT
END_TYPE