should `Period` multiplied by 1000 here? the comment near the definition of `tm_period()` says its in milliseconds.