THEORY OF TIME