Return ticks by time range