Which time describes the comparison of two things that are not alike in an obvious way

A metaphor.

The time you are referring to is called an analogy.