Skip to content

Instantly share code, notes, and snippets.

@snaewe
Created August 23, 2012 09:17
Show Gist options
  • Save snaewe/3434536 to your computer and use it in GitHub Desktop.
Save snaewe/3434536 to your computer and use it in GitHub Desktop.
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