need help for coding

hi guys
i want to run my code 1 mins per hour
how do i code it?
thank you
void setup() {
}

void loop() {
}

Do You know about the IDE function millis() returning the number of miliseconds since startup?

Railroader:
Do You know about the IDE function millis() returning the number of miliseconds since startup?

no i dont know, its my first time to use the ardunio code,

jremington:
https://www.baldengineer.com/blink-without-delay-explained.html

unsigned long previousMillis = 0;
unsigned long interval = 1000;
void setup() {
}

void loop() {
unsigned long currentMillis = millis();
if (currentMillis - previousMillis > interval) {
previousMillis = currentMillis;
sensor.read();

Serial.print....

}
is this right? how do i set the number for the miles?
thank you

You are on the right track. Think about using Serial.print as a debugging tool, having "Serial Monitor" activated. Set number of miles? What do You think of then?

You should probably work through some of the ready to run, simple examples that come with the Arduino IDE before tackling this project.

Files > Examples > Basics (etc.)

Railroader:
You are on the right track. Think about using Serial.print as a debugging tool, having "Serial Monitor" activated. Set number of miles? What do You think of then?

have no idea, first time to touch this code,
can i just do
previousmiles = 3540;
currentmiles= 3600;
currentmiles=0, currentmiles ++;

Nope. Did you forget your question? If so, here it is:

i want to run my code 1 mins per hour

See reply #6. Learn to crawl before trying to run.