Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class template microsec_clock

boost::date_time::microsec_clock — A clock providing microsecond level resolution.

Synopsis

// In header: <boost/date_time/microsec_time_clock.hpp>

template<typename time_type> 
class microsec_clock {
public:
  // types
  typedef           ;             
  typedef  ;    
  typedef   ;

  // public static functions
  template<typename time_zone_type> 
     (shared_ptr< time_zone_type >);
   ();
   ();

  // private static functions
   ();
   
  (const &);
};

Description

A high precision clock that measures the local time at a resolution up to microseconds and adjusts to the resolution of the time system. For example, for the a library configuration with nano second resolution, the last 3 places of the fractional seconds will always be 000 since there are 1000 nano-seconds in a micro second.

microsec_clock public static functions

  1. template<typename time_zone_type> 
       (shared_ptr< time_zone_type > tz_ptr);
    return a local time object for the given zone, based on computer clock
  2.  ();
    Returns the local time based on computer clock settings.
  3.  ();
    Returns the UTC time based on computer settings.

microsec_clock private static functions

  1.  ( converter);
  2.  
    (const & ft);

    The function converts file_time into number of microseconds elapsed since 1970-Jan-01

    [Note] Note

    Only dates after 1970-Jan-01 are supported. Dates before will be wrapped.


PrevUpHomeNext