Changeset 16376


Ignore:
Timestamp:
05/28/13 13:39:26 (12 years ago)
Author:
tbretz
Message:
Fixed a problem with one of the constructors. We should keep the second argument consistent with the timeval variable and also call it usec and not millisec... which was wrong
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Time.cc

    r16196 r16376  
    101101//!    number of milliseconds
    102102//
    103 Time::Time(const time_t &tm, const int &millisec)
    104 : ptime(fUnixOffset, time_duration(0, 0, tm, millisec*pow(10, time_of_day().num_fractional_digits()-3)))
     103Time::Time(const time_t &tm, const suseconds_t &usec)
     104: ptime(fUnixOffset, time_duration(0, 0, tm, usec*pow(10, time_of_day().num_fractional_digits()-6)))
    105105{
    106106}
  • trunk/FACT++/src/Time.h

    r16196 r16376  
    6262    Time(enum init_t type=utc);
    6363    Time(const boost::date_time::special_values &val);
    64     Time(const time_t &tm, const int &ms);
     64    Time(const time_t &tm, const suseconds_t &us);
    6565    Time(const timeval &tm);
    6666    Time(const ptime &pt) : boost::posix_time::ptime(pt) { }
Note: See TracChangeset for help on using the changeset viewer.