Is it possible to count a time interval?

 
I was wondering if it possible to implement a count of a time interval in a expert advisor? Let me explain - i want to count the pip change in Ask or Bid (it doesn't matter which one) for lets say an iterval of 10 seconds. Does anyone have any ideas how to do that trick?
 
Use the loop in start() function:
for (;;)
{
    Print(TimeToStr(CurTime(), TIME_DATE | TIME_SECONDS),  " ",
          MarketInfo(Symbol(), MODE_BID), "/"
          MarketInfo(Symbol(), MODE_ASK));
    Sleep(10000);
}

Although a script would be more appropriate for the task as it runs asynchrously.

 
Thank you very much.