fix toTimespec
This commit is contained in:
@@ -214,8 +214,8 @@ PIDateTime PIDateTime::current() {
|
|||||||
|
|
||||||
void PISystemTime::toTimespec(void * ts) {
|
void PISystemTime::toTimespec(void * ts) {
|
||||||
#ifndef WINDOWS
|
#ifndef WINDOWS
|
||||||
t_cur->tv_sec = seconds;
|
ts->tv_sec = seconds;
|
||||||
t_cur->tv_nsec = nanoseconds;
|
ts->tv_nsec = nanoseconds;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user