I am making a measurment program for the battery.
I would like to have an option inside that is going to measure the time of every cycle.
For example: When i choose to discharge a battery, it takes a value what I set in the Time (or Voltage, or Current) column and discharge a battery for so long time (if i get 1 into the box, it means 1 hour of discharging). I need a help with a time measurement. How can I make that a program counts the time in the whole state machine, or even better how to make that a program start counting when some process is started?
Vi in attachments.
thanks in advance