summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-11-19 11:19:40 -0500
committerEliot Horowitz <eliot@10gen.com>2009-11-19 11:19:40 -0500
commit07821d91c3de53b2cb62841e4a5cac65deafbe71 (patch)
tree4c30a9458e4ed32ac1cabb3bde60808d34d82fe4
parent571d3771c3c818dd10549ff2cbb72b797de7d320 (diff)
downloadmongo-07821d91c3de53b2cb62841e4a5cac65deafbe71.tar.gz
Timer::seconds
-rw-r--r--util/goodies.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/goodies.h b/util/goodies.h
index da3ec1f60c3..23a214b2a60 100644
--- a/util/goodies.h
+++ b/util/goodies.h
@@ -224,6 +224,9 @@ namespace mongo {
Timer() {
reset();
}
+ int seconds(){
+ return (int)(micros() / 1000000);
+ }
int millis() {
return (long)(micros() / 1000);
}