Method: Mongoid::Contextual::MapReduce#time

Defined in:
lib/mongoid/contextual/map_reduce.rb

#timeFloat

Get the execution time of the map/reduce.

Examples:

Get the execution time.

map_reduce.time

Returns:

  • (Float)

    The time in milliseconds.

Since:

  • 3.0.0



211
212
213
# File 'lib/mongoid/contextual/map_reduce.rb', line 211

def time
  results["timeMillis"]
end