Class: Groonga::GrntestLog::TaskEvent

Inherits:
Struct
  • Object
show all
Defined in:
lib/groonga/grntest-log.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#command ⇒ Object

Returns the value of attribute command

Returns:

  • (Object) —

    the current value of command



132
133
134
# File 'lib/groonga/grntest-log.rb', line 132

def command
  @command
end

#id ⇒ Object

Returns the value of attribute id

Returns:

  • (Object) —

    the current value of id



132
133
134
# File 'lib/groonga/grntest-log.rb', line 132

def id
  @id
end

#relative_end_time ⇒ Object

Returns the value of attribute relative_end_time

Returns:

  • (Object) —

    the current value of relative_end_time



132
133
134
# File 'lib/groonga/grntest-log.rb', line 132

def relative_end_time
  @relative_end_time
end

#relative_start_time ⇒ Object

Returns the value of attribute relative_start_time

Returns:

  • (Object) —

    the current value of relative_start_time



132
133
134
# File 'lib/groonga/grntest-log.rb', line 132

def relative_start_time
  @relative_start_time
end

#result ⇒ Object

Returns the value of attribute result

Returns:

  • (Object) —

    the current value of result



132
133
134
# File 'lib/groonga/grntest-log.rb', line 132

def result
  @result
end

Instance Method Details

#elapsed_time ⇒ Object



135
136
137
# File 'lib/groonga/grntest-log.rb', line 135

def elapsed_time
  relative_end_time - relative_start_time
end