Instantly updating Node in Dynamo

Hi guys,
I am trying to implement this method from the API documentation and I have some doughts about it.

UpdateValueParams(String propertyName,String propertyValue,ElementResolver elementResolver)
I am implementing it this way:
{
//Creating the object
ProtoCore.Namespace.ElementResolver NerResolving = new ElementResolver();

//milli is the update in milli seconds.
if (milli % 2 != 0)
{

            Dynamo.Graph.UpdateValueParams dfg = new Dynamo.Graph.UpdateValueParams("startTime", startTime.ToString(), NerResolving);

        }
        else
        {
            Dynamo.Graph.UpdateValueParams dfg = new Dynamo.Graph.UpdateValueParams("startTime", startTime.ToString(), null);
        }

}
The aim is to make my plugin update itself every time the time changes into odd number of milliseconds.
But it is not really working.
so any suggestions ??