Add support for milliseconds timeout

Hey!

According to the PHPDoc, the timeout can accept a float so, this PR adds support for milliseconds timeout.