0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00

include execution time in $explain output

This commit is contained in:
Dwight 2008-11-17 16:38:41 -05:00
parent 342cd60ae9
commit 261d46c2f2

View File

@ -739,6 +739,7 @@ QueryResult* runQuery(Message& message, const char *ns, int ntoskip, int _ntoret
builder.append("n", ordering ? so->size() : n);
if( ordering )
builder.append("scanAndOrder", true);
builder.append("millis", t.millis());
BSONObj obj = builder.done();
fillQueryResultFromObj(b, 0, obj);
n = 1;