4th parameter of time is ticks (1 tick = 4ms) not milliseconds