| 337 | } |
| 338 | |
| 339 | inline double currentStamp() { |
| 340 | struct timeval timeValue{}; |
| 341 | gettimeofday(&timeValue, nullptr); |
| 342 | return (timeValue.tv_sec) * 1000 + (timeValue.tv_usec) / 1000.0; |
| 343 | } |
| 344 | |
| 345 | template<typename callable, typename... arguments> |
| 346 | inline bool threadDelayExec(int delayMS, bool async, callable handler, arguments... args) { |