On a connection between Lorentzian and Euclidean metrics