Machsupport Forum
Mach Discussion => VB and the development of wizards => Topic started by: BR549 on December 10, 2012, 02:26:11 AM
-
Has anyone user the Timer() functions lately. I am getting some strange times from it .
Can someone run this CB code and see what time you get.
SetTimer(10)
Sleep(10000)
MsgBox"" &GetTimer(10)
I should get a time of close to 10 sec BUT I get a return time of .38486666666 secs
Thanks (;-) TP
-
OK NEVER mind I found the problem. I outsmarted myself.
(;-) TP
-
hello,
I'm getting similar values from GetTimer(xx), not seconds...
What was the problem?
Thanks
-
I have no idea . THAT was 3 years ago.
The Timers return milisecs
(;-) TP
-
thanks for your reply
but... I don't get a value in milisecs...
GetTimer return a value of 3.0yyyy for an interval of 33 seconds
Thu - 09:03:47 ---Wait for spindle to reach the requested speed... 0
Thu - 09:04:20 ---Spindle Error! Requested Speed Not Aquired!! Program Execution Aborted! - Line: 9 - 3.02204
-
OK i take that back I just tested it here. It has a resoultion of 13 decimals but displays as seconds.
Mach3 V.062