On Krasovskii's method for solving the continuous time-optimal control problem