added support for sub-millisecond timings, fixes #25