I watched a movie back when I was a kid, I would say during the 80's maybe early 90's.
This movie was about a character who succeeded in time traveling by just thinking of it. At the end of the movie, he finds a contemporary money coin and suddenly he realises he's not from that old time and he gets back in the future.

I cannot remember the title.

Any ideas? ;)