...
You can display the warning message after a particular time with the help of the event, refer to this linkEvents
...
In the below diagram,
Time in Milliseconds = 10000
Counter Order is Increasing
Time to Display Warning = 5000 milliseconds
So as 6000 milliseconds get starts, it will display a warning message
When the total time is over, it will display an error message
...