-
Alexander Barkov authored
A cleanup for MDEV-16939: avoid timeval initialization related problems in the future (compilation failures on Windows) Adding a helper class Timeval, to initialize "struct timeval" in a safe way. As a bonus, adding a method Timeval::trunc(), so the caller now can have one line instead of five lines (declaration, initializations of sec and usec, truncation, passing to store_TIMEVAL()).
7a022d70