timer with millisecond precision implemented with Verilog HDL