03-27-2013 05:32 AM
Hi All
I am using time function to get the current time of the step. I am getting only in hh:mm:ss format and unable to get miliseconds. However miliseconds are getting updated in local.I am not able to get in the final OP.
Is there anyway to get the miliseconds from time function ?
Solved! Go to Solution.
03-27-2013 06:32 AM
Not sure what you are after exactly, but the following should return milliseconds in Locals.ms.
Locals.timeString=Time(False,Locals.hours,Locals.min,Locals.sec,Locals.ms)
03-27-2013 06:55 AM
Thanks for reply.
I am doing the same thing. but in the final string(here Timestring) I am only getting values till seconds.
However if i think the ms local value it is getting updated with miliseconds value.
But in the timestring I am not able to get the milisecond value.
03-27-2013 08:11 AM
I dont think you can do that with the time function directly.
You will just have to concatenate the ms value!
Locals.timeString=Time(False,Locals.hours,Locals.min,Locals.sec,Locals.ms),Locals.timeString+="."+Str(Locals.ms)
03-27-2013 11:01 PM
Thanks ...it worked