Pass milliseconds to poll

Fixes issue #268