How can I make a clock whit millis arduino counter?

Hi
Im figure it out how to make a clock whit internal arduino counter
Can someone give me a way to do it if is possible.

Thanks for all

The first thing you should do is display one second per second, I give you a start sketch (not tested) which you can extend with minutes and hours etc.

#define SECOND 1000

void setup()
{
  Serial.begin(115200);
  Serial.println(0);
}

unsigned long lastSecond = 0;

void loop()
{
  unsigned long time = millis();
  if (time - SECOND > lastSecond)
  {
    lastSecond += SECOND;
    Serial.print("Time: ");
    Serial.println(time);
  }
}

Please spend also some time on the Tutorial section of the Arduino site, as you can learn a lot from the examples there,

Succes,

You can use the Time Library (which does what you are trying to do.)

http://www.arduino.cc/playground/Code/Time

Hey why did you use baud rate of 115200??

Why not?

(shouldn't that be "MAD_MAD_MAD_MAD_mir"?)

To minimise the time the arduino spends in the print routines.

And the 5 points go to Grumpy_Mike for the right answer!!!

hey thanks, it was just a strange number so i guessed there must be some system behind it! I'm new to new to C you see