diff options
author | Chris Wilson <chris+github@qwirx.com> | 2012-02-12 12:29:56 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2012-02-12 12:29:56 +0000 |
commit | 15a3e05144785bfcaddcf2d11b6c549edd9f62ee (patch) | |
tree | 30827463c74a3b24f4b206894580a4511203c014 /lib/common/BoxTime.h | |
parent | 03d7cb4d75822b40d263d0737e3115a0aeff1cda (diff) |
Add experimental "TCP Nice" mode, disabled by default.
Diffstat (limited to 'lib/common/BoxTime.h')
-rw-r--r-- | lib/common/BoxTime.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/common/BoxTime.h b/lib/common/BoxTime.h index cc1571cd..dfc40263 100644 --- a/lib/common/BoxTime.h +++ b/lib/common/BoxTime.h @@ -27,6 +27,10 @@ inline box_time_t SecondsToBoxTime(time_t Seconds) { return ((box_time_t)Seconds * MICRO_SEC_IN_SEC_LL); } +inline uint64_t MilliSecondsToBoxTime(int64_t milliseconds) +{ + return ((box_time_t)milliseconds * 1000); +} inline time_t BoxTimeToSeconds(box_time_t Time) { return Time / MICRO_SEC_IN_SEC_LL; |