Static variables/local variables in tasks

In reply to Ritvik Kumar:

The results you see are correct. A delay control expression gets evaluated at the point when the delay control suspends the process. There is no re-valuation of the expression if any of it operands change.