How to run a loop for exactly one minute

Hey guys.
I have a problem. I already coded a program, that counts the number of signals received. But I need to get a rate (for example HIGHs per minute). Can anyone send me an example code?

Have a look at the BlinkWithoutDelay example in the IDE to see how to do non blocking timing.

For more details see
Using millis() for timing. A beginners guide and Several things at the same time