//+------------------------------------------------------------------+ 
//|   $_TRO_Time                                                | 
//|                                                                  | 
//|   Copyright © 2008, Avery T. Horton, Jr. aka TheRumpledOne       |
//|                                                                  |
//|   PO BOX 43575, TUCSON, AZ 85733                                 |
//|                                                                  |
//|   GIFTS AND DONATIONS ACCEPTED                                   | 
//|                                                                  |
//|   therumpledone@gmail.com                                         |  
//+------------------------------------------------------------------+ 

#property  copyright "Copyright © 2008, Avery T. Horton, Jr. aka TRO" 
#property  link      "http://www.therumpledone.com/" 

#property indicator_chart_window
#property indicator_buffers 0

datetime tTime ;  
int    elapsed  ;  
//+------------------------------------------------------------------+
int init()
  {
   tTime        = 0 ;
   return(0);
  }
//+------------------------------------------------------------------+
int deinit()
  {

   return(0);
  }
//+------------------------------------------------------------------+
int start()
  {

string sTimeCurrent = TimeToStr(TimeCurrent() ); // server time
string sTimeLocal   = TimeToStr(TimeLocal() );   // local computer time
string sTimeBar     = TimeToStr(Time[0] );    // current bar time

elapsed = TimeLocal() - tTime ;

  Comment(  
  "Bar....... " + sTimeBar + "\n" +
  "Server.... " + sTimeCurrent + "\n" +
  
//  "Local.... " + TimeLocal() + "\n" +
//  "elapsed= ", elapsed, "\n",      
  "Local..... " + sTimeLocal );    

tTime = TimeLocal() ;     
           
   return(0);
  }
//+------------------------------------------------------------------+
/*
string sTimeCurrent = TimeToStr(TimeCurrent(),TIME_SECONDS); // server time
string sTimeLocal   = TimeToStr(TimeLocal(),TIME_SECONDS);   // local computer time
string sTimeBar     = TimeToStr(Time[0],TIME_SECONDS);    // current bar time

*/