certain data from sensorhistory

I would like show a drain of body battery for a certain time.

var bb_iterator = Toybox.SensorHistory.getBodyBatteryHistory({ :period => 41 });

gets me exact two hours of BodyBatteryHistory. I now want to substract the last SensorSample from the first to get an info about the bodybattery drain or recuperation of the last two hours.

My question is: how can I obtain the last sample from the bb_iterator. I could iterate until I get it with bb_iterator.next(), or I can get the same sensor history with reversed order, and then get the first sample from the iterator which will then be the last.

I do not like these solutions because they do not feel right, so is there a way to get the sample at the two hour mark (if it's available), by position or moment? I thought 'when' could help, but I was unable to get something out of it.