Mega ShockedOn the 2018-05-15 at 03:41am
There might be better ways but I would use a counter

#define TIME 100 BYTE textTimer=0; while (1) { if (++textTimer == TIME) { textTimer=0; // write text or erase text } }
When the scene is simple you will need more TIME and as things get busier you will need less TIME.