yse / easy_profiler

Lightweight profiler library for c++
MIT License
2.17k stars 189 forks source link

EasySocket::accept() waits 500ms instead 0.5ms till select timeout. #152

Closed tkalbitz closed 1 month ago

tkalbitz commented 5 years ago

EasySocket::accept() waits 0.5ms till a select() timeout happens. This creates 2.7% overhead on my system. Assumption of the patch is that microseconds are needed for the struct timeval but milliseconds were meant. With this change no visible overhead is measurable on my system.