-timeTracker.controller 'TimerCtrl', ($scope, $account, $redmine, $ticket, $message, state) ->
+timeTracker.controller 'TimerCtrl', ($scope, $timeout, $account, $redmine, $ticket, $message, state) ->
 
   ONE_MINUTE = 1
   COMMENT_MAX = 255
+  SWITCHING_TIME = 300
 
   $scope.state = state
   $scope.projects = {}

   on timer stopped, send time entry.
  ###
  $scope.$on 'timer-stopped', (e, time) ->
    postEntry(time.minutes)


  ###

  $scope.tickets = []
  $scope.selectedTicket = []

  trackedTime = {}

  ###
   Initialize.
