Timed event

How would I set up an event to happen every 60 seconds.If someone has a bit of code to do this could you post it to me plz.

Emmet

Did you have a look over at the playground?
TimedAction?

haven't yet but will do now.

What I want to happen is I have a PIR connected to an UNO and every 60 seconds I want the an event to happen to write the state of the PIR to a file along with the ID I have given my UNO.

What I want to happen is I have a PIR connected to an UNO and every 60 seconds I want the an event to happen to write the state of the PIR to a file along with the ID I have given my UNO.

What else is the Arduino doing? If this is all that is happening, a simple call to millis() is enough to get the "time". Compare "now" with the time that the last write occurred, to see if it is time to write again. If so, write, and update the last write time.