Thrift: concurrency/Util.h: Add converters for 'struct timeval', cleanup
authorDavid Reiss <dreiss@apache.org>
Wed, 5 Mar 2008 07:51:40 +0000 (07:51 +0000)
committerDavid Reiss <dreiss@apache.org>
Wed, 5 Mar 2008 07:51:40 +0000 (07:51 +0000)
commit631dcb42d1be0896c14e7830a45a5db4e3ee5ef6
treeacb419cc4700851be4ba223068c6aea7a076b512
parent6987535d65529be108f36a51f8a603d675c89e16
Thrift: concurrency/Util.h: Add converters for 'struct timeval', cleanup

Summary: - Added 'struct timeval' toMilliseconds and toTimeval converters modeled on the timespec ones
         - Added constants for microsecs, and got rid of the 500000 and 500 magic #'s :)

Reviewed By: dreiss

Test Plan: works in my test env

Revert: OK

DiffCamp Revision: 8742

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665554 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/concurrency/Util.h