"use strict";var t=require("../../bt/factory"),e=require("../../bt/base"),r=e.Status,i=e.createDecorator;module.exports=i({constructor:function(t){this.timeout=t},start:function(){return this.startTime=(new Date).getTime(),!0},stop:function(){},update:function(t){var e=(new Date).getTime()-this.startTime;return e>this.timeout?(this.getBehavior().stop(),r.FAILED):t}}),t.addBehavior(module);