Question: what movie is the song as time goes by from
Answer: It became most famous in 1942 when part of it was sung by the character Sam ( Dooley Wilson ) in the movie Casablanca .