Created
August 23, 2012 09:17
-
-
Save snaewe/3434536 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inline | |
CORBA::LongLong msecs_since_midnight() | |
{ | |
using namespace boost::posix_time; | |
using boost::gregorian::date; | |
using boost::numeric_cast; | |
ptime now = second_clock::local_time(); | |
time_duration td = now.time_of_day(); | |
return td.total_milliseconds(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment