Using timer interrupts in a library

I don't really want to because you shouldn't be including .cpp files.

Compilation units (things that are directly compiled) are .cpp files. They should include .h files which contain headers (hence the .h suffix) for other things which might be implemented elsewhere.

For a .cpp file to include another .cpp file is strange. Why not just put all the code in one file? Or if not, let the compiler compile both of them for you.