HDFS-4249: restrict elapsed times to positive numbers