add units support for capture duration