MyTimer.ino:4:19: fatal error: Timer.h: No such file or directory

I'm trying to get a simple timer to work and found a timer example on the Arduino site. It calls timer.h.

I have timer.h in my program files but i get an error "no such file or directory" I'm using Arduino UNO and 1.6.5.

Here's the link to the example i'm trying to duplicate: http://playground.arduino.cc/Code/Timer

Here's my sample code that will not run

#include "timer.h"

void setup() {
 // put your setup code here, to run once:

}

void loop() {
 // put your main code here, to run repeatedly:

}

Please edit your post, select the code, and put it between [code][/code] tags.

You can do that by hitting the “Code” icon above the posting area. It is the first icon, with the symbol: </>

You have to download and install the library from https://github.com/JChristensen/Timer - did you do this?

Here i have attached timerlibray , you need to unzip this library folder in to library folder of arduino .

Then try to upload code

timer.zip (33.7 KB)

Thanks for the replys

I've downloaded the ZIP file--how did you know to go there and get it? I didn't see anything in the playground.arduino about this

I added the code ... /code around my post--cool how it ads a Code section.

Thanks again

Kris

I am using library fro gps communication & real time application. ofcourse support from forum team

KrisKasprzak: ...

I've downloaded the ZIP file--how did you know to go there and get it? I didn't see anything in the playground.arduino about this ...

Kris

1) You got the code from the User Code Library. Since it is user code, it isn't included in the IDE download 2) On that page it tells you where to go to get the library.

Installation

You can download the library from here:

https://github.com/JChristensen/Timer

As with all libraries, unzip the file into the 'libraries' folder in your Arduino directory, which will be in something like 'My Documents\Arduino' on Windows, 'Documents/Arduino' on Mac etc. If this is the first library you have installed, you will need to create a directory there called 'libraries'.

man i fill silly... I just looked at the code and stopped there.

Thanks again.

PS... this Arduino stuff is addicting, I've recently bought a SD shield, and a 20 x 4 display comes in today. I'm like a kid in a candy store :)