73 for (
size_t i=0; i<time.size(); i++) {
111 if (
this != &other) {
128 std::chrono::system_clock::time_point now(std::chrono::system_clock::now());
129 std::time_t now_t(std::chrono::system_clock::to_time_t(
130 std::chrono::system_clock::time_point(now)));
134 gmtime_r(&now_t, &midnight) ;
135 midnight.tm_hour = 0 ;
136 midnight.tm_min = 0 ;
137 midnight.tm_sec = 0 ;
140 auto millisec_start(std::chrono::system_clock::from_time_t(mktime(&midnight)));
142 double start = std::chrono::duration_cast<std::chrono::microseconds>(millisec_start.time_since_epoch()).count()/1000000.0 ;
143 double stop = std::chrono::duration_cast<std::chrono::microseconds>(now.time_since_epoch()).count()/1000000.0 ;
146 return stop-start-midnight.tm_gmtoff ;
201 SetTime(time_vect, time_format) ;
249 # pragma mark - Protected Methods
263 return time[0] * 10000 +
281 std::vector<double> time_vect(4,0.0) ;
284 time_vect[3] = time - std::floor(time) ;
286 time_vect[2] = int(std::floor(time)) % 100 ;
288 time_vect[1] = int(std::floor(time - time_vect[2]))/100 % 100 ;
290 time_vect[0] = int(std::floor(time - time_vect[2] - time_vect[1])/10000) ;
304 double secs(seconds);
310 double fracsec = secs - std::floor(secs) ;
311 double sec = int(std::floor(secs)) % 60 ;
312 double min = int(std::floor(secs-sec)/60) % 60 ;
313 double hrs = int(std::floor(secs-sec)/60)/60 ;
314 return (hrs*10000) + (min*100) + sec + fracsec ;
354 time_ = std::vector<double>(4,0.0);