Read value and wait

Can anyone help me with this loop where nothing else than the analog input 0 is being read, is happening for a specific amount of time?

Sounds like you need to use millis() for timing.

Read Using millis() for timing. A beginners guide and Several things at the same time and look at the BlinkWithoutDelay example in the IDE.