Revision 8eb31bd3 client/cpp/include/RobotTimestamp.h
| client/cpp/include/RobotTimestamp.h | ||
|---|---|---|
| 48 | 48 |
struct timespec tp; |
| 49 | 49 |
clock_gettime(CLOCK_REALTIME, &tp); |
| 50 | 50 |
|
| 51 |
RobotTimestamp res(tp.tv_sec, tp.tv_nsec); |
|
| 52 |
return res; |
|
| 51 |
return RobotTimestamp(tp.tv_sec, tp.tv_nsec); |
|
| 53 | 52 |
}; |
| 54 | 53 |
|
| 55 | 54 |
int32_t sec; |
Also available in: Unified diff