diff options
author | sma <sma@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2008-06-11 13:56:11 +0000 |
---|---|---|
committer | sma <sma@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2008-06-11 13:56:11 +0000 |
commit | 5cdc36e29c6c6f06c412d2d85b2914e8912f56e6 (patch) | |
tree | aae4e46caad4170e5d8014f3b1f61f3207f62713 /ACE/ace/Time_Value.inl | |
parent | 5569e130ab80791d257545ffca788f82fba8a7e9 (diff) | |
download | ATCD-5cdc36e29c6c6f06c412d2d85b2914e8912f56e6.tar.gz |
ChangeLogTag: Wed Jun 11 13:55:00 UTC 2008 Simon Massey <sma at prismtech dot com>
Diffstat (limited to 'ACE/ace/Time_Value.inl')
-rw-r--r-- | ACE/ace/Time_Value.inl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ACE/ace/Time_Value.inl b/ACE/ace/Time_Value.inl index 06b3e6ef24c..e5306a2b724 100644 --- a/ACE/ace/Time_Value.inl +++ b/ACE/ace/Time_Value.inl @@ -181,6 +181,14 @@ ACE_Time_Value::msec (long milliseconds) this->tv_.tv_usec = (milliseconds - (secs * 1000)) * 1000; } +// Converts from milli-seconds format into Time_Value format. + +ACE_INLINE void +ACE_Time_Value::msec (int milliseconds) +{ + ACE_Time_Value::msec (static_cast<long> (milliseconds)); +} + // Returns number of micro-seconds. ACE_INLINE suseconds_t |