Direct methods for solving time-varying delay systems