JMeterTreeNode node,
long deltaT)
{
TestPlan variables= new TestPlan();
variables.addParameter("T", Long.toString(deltaT));
ValueReplacer replacer= new ValueReplacer(variables);
JMeterTreeNode mySelf= model.getNodeOf(this);
Enumeration children= mySelf.children();
while (children.hasMoreElements())
{
JMeterTreeNode templateNode= (JMeterTreeNode)children.nextElement();
if (templateNode.isEnabled())
{
TestElement template= templateNode.getTestElement();
if (template instanceof Timer)
{
TestElement timer= (TestElement)template.clone();
try
{
replacer.undoReverseReplace(timer);
model.addComponent(timer, node);
}
catch (InvalidVariableException e)
{
// Not 100% sure, but I believe this can't happen, so