Zero out timeval struct before using

This fixes #16.