Revision 50784a28 src/timestamp.cpp
src/timestamp.cpp | ||
---|---|---|
9 | 9 |
set(now()); |
10 | 10 |
} |
11 | 11 |
|
12 |
Timestamp::Timestamp(int32_t _sec, int32_t _nsec){
|
|
12 |
Timestamp::Timestamp(uint32_t _sec, uint32_t _nsec){
|
|
13 | 13 |
set(_sec, _nsec); |
14 | 14 |
} |
15 | 15 |
|
... | ... | |
26 | 26 |
return Timestamp(tp.tv_sec, tp.tv_nsec); |
27 | 27 |
} |
28 | 28 |
|
29 |
void Timestamp::set(int32_t _sec, int32_t _nsec){
|
|
29 |
void Timestamp::set(uint32_t _sec, uint32_t _nsec){
|
|
30 | 30 |
sec = _sec; |
31 | 31 |
nsec = _nsec; |
32 | 32 |
} |
Also available in: Unified diff