The terms time warp, space warp, and time-space warp are commonly used in science fiction. They sometimes refer to Einstein’s theory that time and space form a continuum that bends, folds, or warps from the observer’s point of view, relative to such factors as movement or gravitation. They are also used in reference to more fantastic notions of discontinuities or other irregularities in spacetime not based on real-world science. It shown beautifully in movie InterStellar

The Tripura Rahasya (Devanagari: त्रिपुरा रहस्य, Tripurā Rahasya) meaning The Mystery beyond the Trinity, is an ancient literary work in Sanskrit believed to have been narrated by Dattatreya to Parashurama.It is an ancient prime text is one of the treatise on Advaita school of classical Indian Metaphysics.

This is must read for all who really are interested in understanding true nature of the Universe. It is complex text. Very very complex. Mind bending.
One part of this text is about nature of the cosmos. It explained HOW WAKEFULNESS AND DREAM ARE SIMILAR IN NATURE AND OBJECTS ARE ONLY MENTAL IMAGES

Watch movie Interstellar after reading this text (it is bit lengthy too). You will enjoy movie thoroughly.

Excerpt from Tripura Rahasya, Chapter 13

1-2. The sage’s son made the king sleep, united his subtle body with the gross one left in the hole, and then woke him up.

3. On regaining his senses, Mahasena found the whole world changed. The people, the river courses, the trees, the tanks, etc., were all different.

4-30. He was bewildered and asked the saint:

“O great one! How long have we spent seeing your world? This world looks different from the one I was accustomed to! “Thus asked, the sage’s son said to Mahasena: ‘Listen King, this is the world which we were in and left to see that within the hill. The same has undergone enormous changes owing to the long interval of time. We spent only one day looking round the hill region; the same interval counts for twelve thousand years in this land; and it has accordingly changed enormously. Look at the difference in the manners of the people and their languages. Such changes are natural. I have often noticed similar changes before. Look here! This is the Lord, my father in Samadhi. Here you stood before, praising my father and praying to him. There you see the hill in front of you.

“By this time, your brother’s progeny has increased to thousands. What was Vanga, your country, with Sundara, your capital, is now a jungle infested with jackals and wild animals. There is now one Virabahu in your brother’s line who has his capital Visala on the banks of the Kshipra in the country of Malwa; in your line, there is Susarma whose capital is Vardhana in the country of the Dravidas, on the banks of the Tambrabharani. Such is the course of the world which cannot remain the same even for a short time. For in this period, the hills, rivers, lakes, and the contour of the earth have altered. Mountains subside; plains heave high; deserts become fertile; plateaus change to sandy tracts; rocks decompose and become silt; clay hardens sometimes; cultivated farms become barren and barren lands are brought under tillage; precious stones become valueless and trinkets become invaluable; salt water becomes sweet and potable waters become brackish; some lands contain more people than cattle, others are infested with wild beasts; and yet others are invaded by venomous reptiles, insects and vermin. Such are some of the changes that happen on the earth in course of time. But there is no doubt that this is the same earth as we were in before.”

You can read Tripura Rahasya translation here: