doc pitime.h

This commit is contained in:
2022-03-25 15:45:05 +03:00
parent 9a8b9c7141
commit a315f7af25
2 changed files with 96 additions and 39 deletions

View File

@@ -257,6 +257,20 @@ PIDateTime PIDateTime::current() {
}
//! \details
//! \warning
//! \~english
//! Use this function to sleep for difference of system times or constructs system time.
//! If you call this function on system time returned with \a PISystemTime::current() thread will be sleep almost forever
//! \~russian
//! Используйте этот метод для ожидания разниц системных времен или своего времени.
//! Если метод будет вызван для системного времени \a PISystemTime::current(), то
//! ожидание будет почти бесконечным
void PISystemTime::sleep() {
piUSleep(piFloord(toMicroseconds()));
}
void PISystemTime::toTimespec(void * ts) {
#ifndef WINDOWS
((timespec*)ts)->tv_sec = seconds;