A theorem that gives the optimal control of Gaussian processes using the mathematical expectation of a function of the time and the place where the uncontrolled processes hit the boundary of the stopping region for the first time is proved. The result obtained in this note is an extension of a theorem due to Whittle.