get clock in seconds in VBA

Discuss anything related to using the program (eg. triggered betting tactics)

Moderator: 2020vision

get clock in seconds in VBA

Postby iceman » Fri Mar 25, 2011 10:38 pm

Hi,

how can I get in VBA the clock ins seconds? I know ho to do in excel, but I need to do that in VBA, because if i chek excel cells, when load a new market it's a problem....

Thanks anyway
User avatar
iceman
 
Posts: 57
Joined: Sun Feb 14, 2010 5:44 pm

Postby osknows » Fri Mar 25, 2011 11:35 pm

MyTime = Format(Now, "dd-MMM-yyyy HH:mm:ss") - gives time to the second


MyTime = Format(Now, "dd-MMM-yyyy HH:mm:ss") & "." & Right(Format(Timer, "#0.00"), 2) - gives time to the millisecond
User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am

Postby iceman » Sat Mar 26, 2011 11:24 am

Thank you very much Osk!
User avatar
iceman
 
Posts: 57
Joined: Sun Feb 14, 2010 5:44 pm

Postby osknows » Sat Mar 26, 2011 11:35 am

I should have said that the Format converts the data/time to a string. If you need it as a date type just use

MyTime = Now
User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am

Postby alrodopial » Sat Mar 26, 2011 12:28 pm

Or as number:
string*1
alrodopial
 
Posts: 1384
Joined: Wed Dec 06, 2006 9:59 pm


Return to Discussion

Who is online

Users browsing this forum: No registered users and 23 guests

Sports betting software from Gruss Software


The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.

Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.

Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.

He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.

We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.