Hi zzping115:
You can get the time on real time or on historical tester getting for example the time of last tick or bar.
Something like:
long time = history.getLasTick().getTime();
// or (but you need to take in consideration the elapsed time depending on period selected)
long barTime = history.getPreviousBarStart(Period.TEN_SECS, tick.getTime());
// or on onTick() method
long time = tick.getTime();
// or on onBar() method (but you need to take in consideration the elapsed time depending on period selected)
long barTime = bar.getTime();
I hope this can help.
Trade well
JL