diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-11-19 11:19:40 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-11-19 11:19:40 -0500 |
commit | 07821d91c3de53b2cb62841e4a5cac65deafbe71 (patch) | |
tree | 4c30a9458e4ed32ac1cabb3bde60808d34d82fe4 | |
parent | 571d3771c3c818dd10549ff2cbb72b797de7d320 (diff) | |
download | mongo-07821d91c3de53b2cb62841e4a5cac65deafbe71.tar.gz |
Timer::seconds
-rw-r--r-- | util/goodies.h | 3 |
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); } |