I suspect that God created time so that from time to time he could be surprised by something. Things would be frightfully dull otherwise.
Time is a man-constructed invention based upon events that surrounds him. The scriptures talk about how we even worship the seasons-that is how far we’ve fallen.
Creation did not come into existence because God was bored. Creation came into existence to give God glory.