How to pass delay through a variable in assertion

In reply to Dilip Bagadi:

Thanks Dilip, the code is working…