diff options
author | Mathias Stearn <mathias@10gen.com> | 2011-04-05 12:24:30 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2011-04-05 14:08:06 -0400 |
commit | 0a1b0214b68b9cdeb409adb5343eafd5f37121fc (patch) | |
tree | 41de8cc2db3ef0de6f682a2ccfc40cae4f6d200d /util | |
parent | 7c1a9cec152baff49b12697d5e502fa680dc7fc1 (diff) | |
download | mongo-0a1b0214b68b9cdeb409adb5343eafd5f37121fc.tar.gz |
moving down so all time funcs are together
Diffstat (limited to 'util')
-rw-r--r-- | util/time_support.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/util/time_support.h b/util/time_support.h index 87d2fc4d401..f21908f0870 100644 --- a/util/time_support.h +++ b/util/time_support.h @@ -166,14 +166,6 @@ namespace mongo { return WrappingInt::diff(tnew, told); } - /** curTimeMillis will overflow - use curTimeMicros64 instead if you care about that. */ - inline unsigned curTimeMillis() { - boost::xtime xt; - boost::xtime_get(&xt, boost::TIME_UTC); - unsigned t = xt.nsec / 1000000; - return (xt.sec & 0xfffff) * 1000 + t; - } - extern long long jsTime_virtual_skew; extern boost::thread_specific_ptr<long long> jsTime_virtual_thread_skew; @@ -195,6 +187,14 @@ namespace mongo { else return 0; } + /** curTimeMillis will overflow - use curTimeMicros64 instead if you care about that. */ + inline unsigned curTimeMillis() { + boost::xtime xt; + boost::xtime_get(&xt, boost::TIME_UTC); + unsigned t = xt.nsec / 1000000; + return (xt.sec & 0xfffff) * 1000 + t; + } + /** Date_t is milliseconds since epoch */ inline Date_t jsTime() { boost::xtime xt; |