Set timer time dynamically

Author
Topic
#1921

I’m trying set the start time after the smart timer and counter object has already been created. I’m using the control as a job timer.

For instance, the timer should default to 00:00:00. That works fine setting the value property. If I select another job that I’ve already worked, the timer needs to change dynamically. So, pressing a button will change the time to something like 00:34:11. Is there a call-in method for setting the time in that fashion. Or do I need to delete the object and rebuild using the new time?

Viewing 3 replies - 1 through 3 (of 3 total)
Author
Replies
  • #1923

    Hi,

    Right now there is no method to set custom values when the timer is already initialized. I plan to make some core changes to timer objects to add some low level control, but I am not sure when that will happen.

    Milan

  • #1924

    Thanks for the reply. For now, I’m just using the following to get me by:

    mytimer.$timer.core.$mode.$time = 3355000;
    mytimer.$mode.change();

    Thanks,
    Matt

  • #1925

    That is very good solution, it is not ideal, but it works for some modes.

    Milan

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Set timer time dynamically’ is closed to new replies.