Lines Matching defs:sec
65 explicit Time(double sec) { operator=(sec); }
67 Time(uint64_t sec, uint64_t nsec) { set(sec, nsec); }
74 time_t sec() const { return _time.tv_sec; }
79 void sec(time_t sec) { _time.tv_sec = sec; }
103 void set(time_t _sec, long _nsec) { sec(_sec); nsec(_nsec); }
120 sec(other.sec());
129 sec((time_t)seconds);
137 sec(tv.tv_sec);
145 sec(ts.tv_sec);
155 return (double)sec() + ((double)nsec()) * 1e-9;
165 tv.tv_sec = sec();
174 _time.tv_sec += other.sec();
187 _time.tv_sec -= other.sec();
209 return l.sec() == r.sec() && l.nsec() == r.nsec();
215 return l.sec() != r.sec() || l.nsec() != r.nsec();
221 return (l.sec() < r.sec()) ||
222 (l.sec() == r.sec() && l.nsec() < r.nsec());
228 return (l.sec() < r.sec()) ||
229 (l.sec() == r.sec() && l.nsec() <= r.nsec());
235 return (l.sec() > r.sec()) ||
236 (l.sec() == r.sec() && l.nsec() > r.nsec());
242 return (l.sec() > r.sec()) ||
243 (l.sec() == r.sec() && l.nsec() >= r.nsec());