         "#{seconds}s"
 
     onRenderLine: (row, renderArray, options) ->
-      if @displayTime
+      if do @shouldDisplayTime
         time = @rowTime row
         if time > 1000
           @logger.info "Rendering time for row #{row.id} as #{time}"

      @api.setData key, value
    transformRowData: (id, keytype, transform) ->
      @setRowData id, keytype, (transform (@getRowData id, keytype))

    _date: (timestamp) ->
      "#{timestamp.getFullYear()}-#{timestamp.getMonth()}-#{timestamp.getDate()}"


    onRowChange: (from, to) ->
      @logger.debug "Switching from row #{from?.id} to row #{to?.id}"
      if not do @isLogging
        return
      time = new Date()
      if @currentRow and @currentRow.id != to?.id
        @onRowPeriod { start: @currentRow.time, stop: time, id: @currentRow.id, row: from }
