Skip to main content

timeHasExpired

Short summary​

This assertion method checks whether time has elapsed since the timestamp time

Parameters​

NameTypeCommentKind
timestampTIMEstart time you get it with TIME()input
expiringTimeTIMEtimeout like t#300msinput
messageAssertMessagemessage if the assertion is falseinput

Code​

Declaration​

METHOD timeHasExpired
VAR_INPUT
(* start time you get it with ``TIME()`` *)
timestamp :TIME;
(* timeout like ``t#300ms`` *)
expiringTime :TIME;
(* message if the assertion is false *)
message :AssertMessage;
END_VAR