DC Motor Millis()

Not without a complete program and a bit more detail about what you mean by multitasking.

And you haven't got very far with millis(). I can't see any in your code fragment but I can see quite a lot of blocking code that would make using millis() pretty pointless.

Steve