How to check time ?

How can I check the time elapsed from the beginning of the game ? (from a bot)

 

Best regards

 

JM

Comments (1)

  1. StefanBelo Says:
    Wednesday, February 11, 2009

    Use VS IntelliSense

    If you decided to develop your own bot scripts you certainly use Bfexplorer BOT SDK. I am sure you loaded the BotTestApplication solution into Visual Studio and have a look at at least on the Bot class as all your bots will be divided from this class if you will not extend already existing bots PlaceBetBot or PlaceBetClosePositionBot for instance. The based three objects you will use with your bot are:

    • IBetfairService betfairService;
    • MonitoredMarket monitoredMarket;
    • Runner runner;

    Your bot runs on MonitoredMarket and on it selection: Runner

    So if you want to know what the official start time of your market is, you will use:

    monitoredMarket.MarketDetails.MarketTime

    It is quite simple with Visual Studio and IntelliSense to browse all available object properties.


Do you want to comment this article? Sign up here or login.