     window.logLongestSuites = (number) => @logLongestSuites(number)
 
   logLongestSuites: (number=10, log) ->
+    return unless window.timedSuites.length > 0
+
     log ?= (line) -> console.log(line)
     log "Longest running suites:"
     suites = _.map(window.timedSuites, (key, value) -> [value, key])

      else
        "#{memo}\n#{_.multiplyString('  ', index)}#{description}"
    @description = _.reduce(stack, reducer, '')
    @time = new Date().getTime()

  reportSpecResults: (spec) ->
    return unless @time? and @description?

    duration = new Date().getTime() - @time

    window.timedSpecs.push
      description: @description
      time: duration
      fullName: spec.getFullName()

    if timedSuites[@suite]
      window.timedSuites[@suite] += duration
    else
      window.timedSuites[@suite] = duration

    @time = null
    @description = null

    undefined

  logLongestSpecs: (number=10, log) ->
    return unless window.timedSpecs.length > 0

    log ?= (line) -> console.log(line)
    log "Longest running specs:"
    for spec in _.sortBy(window.timedSpecs, (spec) -> -spec.time)[0...number]
