title: c++, getting milliseconds since midnight in local time
body: <p>It's unbelievable how difficult the above is to accomplish in C++. I'm looking for a way to do this as efficiently as possible while still maintaining millisecond precision.</p>
  
  <p>The solutions I have so far have either required a lot of code and function calls making the implementation slow, or they require me to change the code twice a year to account for daylight savings time.</p>
  
  <p>The computer this will be running on is synced using ntp and should have direct access to the local time adjusted for DST.  Can somebody with expertise on this share some solutions? </p>
  
  <p>My platform is CentOS5, g++ 4.1.2, Boost 1.45, solution doesn't need to be portable, can be platform specific.  It just needs to be quick and avoid twice a year code changing.</p>