Ticket #3105: microsec_time_clock.hpp.patch

File microsec_time_clock.hpp.patch, 1.4 KB (added by Kevin Duffy <duffy151+boost@…>, 13 years ago)

Patch that adds std:: namespace

  • microsec_time_clock.hpp

    old new  
    11#ifndef DATE_TIME_HIGHRES_TIME_CLOCK_HPP___
    22#define DATE_TIME_HIGHRES_TIME_CLOCK_HPP___
    33
    4 /* Copyright (c) 2002,2003,2005 CrystalClear Software, Inc.
     4/* Copyright (c) 2002,2003,2005,2009 CrystalClear Software, Inc.
    55 * Use, modification and distribution is subject to the
    66 * Boost Software License, Version 1.0. (See accompanying
    77 * file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
     
    6666  private:
    6767    // we want this enum available for both platforms yet still private
    6868    enum TZ_FOR_CREATE { LOCAL, GMT };
    69    
     69
    7070  public:
    7171
    7272#ifdef BOOST_HAS_GETTIMEOFDAY
     
    129129      #endif
    130130      return create_time(ft, LOCAL);
    131131    }
    132    
     132
    133133    //! Return the UTC time based on computer settings
    134134    static time_type universal_time() {
    135135      FILETIME ft;
     
    165165      // microseconds -- static casts supress warnings
    166166      boost::uint32_t sub_sec = static_cast<boost::uint32_t>((filetime % 10000000) / 10);
    167167
    168       std::time_t t = static_cast<time_t>(filetime / 10000000); // seconds since epoch
    169      
     168      std::time_t t = static_cast<std::time_t>(filetime / 10000000); // seconds since epoch
     169
    170170      std::tm curr, *curr_ptr = 0;
    171171      if (tz == LOCAL) {
    172172        curr_ptr = c_time::localtime(&t, &curr);