How to add a LED to be triggered for 5 seconds without blocking any other code

uint32_t myTimer ;   // global
. . .
. . .

myTimer = millis() ; // set a timer

. . .
. . . 

if ( millis() - myTimer > 5000 ) { . . .    // test for expiry of timer