When you report an error, you better indicate which line is highlighted in the PDE, it helps in spotting the error. Here, the code is short, but when it is long, it is better (even more if we cannot run the code).
millis() returns an int, not a float.
Not sure what you try to do with the code above, but you don't use m.
I suggest to read the articles of the
http://wiki.processing.org/w/Technical_FAQ (and the Learning section, of course), it shows how to use millis().
Oh, and try to find thread subjects more descriptive of your problem, technical problem of course.
And see also
https://forum.processing.org/topic/where-to-place-threads-and-other-forum-practices