But to prevent any hick-ups with type incompatibilities - uint32_t
vs. int
vs. number literals - it has prooven useful to just snapshot millis()
in your sub-process and check against ((millis() - snapshotMillis) >= processDelayTime)
On the other hand there are also interrupt driven ways to achieve some of these things ...
And beaten again by @peekay123