Using millis() to get elapsed time

Well, you tell me. Does it work better?

I'm no expert in Processing, but on the Arduino, you can't read into a float like that. A float is 4 bytes and a read reads one byte. Maybe a Processing expert can elaborate.