Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

Click here to view the latest version of this page.
PrevUpHomeNext

Class template microsec_clock

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

Synopsis

template<typename time_type> 
class microsec_clock {
public:
// types
typedef time_type::date_type date_type;
typedef time_type::time_duration_type time_duration_type;
typedef time_duration_type::rep_type resolution_traits_type;

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

// private static functions
static time_type create_time(TZ_FOR_CREATE) ;
static time_type local_time() ;
static time_type universal_time() ;
static time_type create_time(FILETIME &, TZ_FOR_CREATE) ;
};

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> 
    static time_type local_time(shared_ptr< time_zone_type > tz_ptr) ;
  2. static time_type local_time() ;
  3. static time_type universal_time() ;

microsec_clock private static functions

  1. static time_type create_time(TZ_FOR_CREATE tz) ;
  2. static time_type local_time() ;
  3. static time_type universal_time() ;
  4. static time_type create_time(FILETIME & ft, TZ_FOR_CREATE tz) ;
Copyright 2001-2005 CrystalClear Software, Inc

PrevUpHomeNext