Use time.h for windows

Signed-off-by: Trevor Norris <trev.norris@gmail.com>