Is time and machine one word?

Not normally.

It usually appears in print as "time machine", or sometimes as "time-machine".