The Erotic and Wacky Tunnel of Time (1983)

Adventure
Science Fiction
Comedy

Young nerdy and horny Perico invents a time machine and uses it for sex tourism. He visits the cavewomen, ancient Egypt, ancient Rome and a Turkish harem, but also the future. However, his real test is in the present.