added support for giving duration in microseconds per plugin