Show query response time

how do i get response time of query after every execution.

Like Fetched 9 records in 9 ms. for find() query

For a find query:

db.movies.find({}).explain("executionStats")

For an aggregation:

db.movies.aggregate([{$match:{}}], {explain: true})