Lines Matching defs:nsec
67 Time(uint64_t sec, uint64_t nsec) { set(sec, nsec); }
77 long nsec() const { return _time.tv_nsec; }
82 void nsec(long nsec) { _time.tv_nsec = nsec; }
103 void set(time_t _sec, long _nsec) { sec(_sec); nsec(_nsec); }
121 nsec(other.nsec());
130 nsec((long)((seconds - new_time) * 1e9));
138 nsec(tv.tv_usec * 1000);
146 nsec(ts.tv_nsec);
155 return (double)sec() + ((double)nsec()) * 1e-9;
175 _time.tv_nsec += other.nsec();
188 _time.tv_nsec -= other.nsec();
209 return l.sec() == r.sec() && l.nsec() == r.nsec();
215 return l.sec() != r.sec() || l.nsec() != r.nsec();
222 (l.sec() == r.sec() && l.nsec() < r.nsec());
229 (l.sec() == r.sec() && l.nsec() <= r.nsec());
236 (l.sec() == r.sec() && l.nsec() > r.nsec());
243 (l.sec() == r.sec() && l.nsec() >= r.nsec());