trunk/src/emu/attotime.h
| r245453 | r245454 | |
| 97 | 97 | : seconds(secs), |
| 98 | 98 | attoseconds(attos) { } |
| 99 | 99 | |
| 100 | attotime(const attotime& that) |
| 101 | : seconds(that.seconds), |
| 102 | attoseconds(that.attoseconds) { } |
| 103 | |
| 104 | // assignment |
| 105 | attotime& operator=(const attotime& that) |
| 106 | { |
| 107 | this->seconds = that.seconds; |
| 108 | this->attoseconds = that.attoseconds; |
| 109 | return *this; |
| 110 | } |
| 111 | |
| 100 | 112 | // queries |
| 101 | 113 | bool is_zero() const { return (seconds == 0 && attoseconds == 0); } |
| 102 | 114 | bool is_never() const { return (seconds >= ATTOTIME_MAX_SECONDS); } |