timeHasNotExpired
Short summary
This assertion method checks that the time since the timestamp time has not yet elapsed
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| timestamp | LTIME | start time you get it with LTIME() | input |
| expiringTime | LTIME | timeout like LTIME#300ms | input |
| message | AssertMessage | message if the assertion is false | input |
Code
Declaration
METHOD timeHasNotExpired
VAR_INPUT
(* start time you get it with ``LTIME()`` *)
timestamp :LTIME;
(* timeout like ``LTIME#300ms`` *)
expiringTime :LTIME;
(* message if the assertion is false *)
message :AssertMessage;
END_VAR