Discrepancy between PrevEvent() function result and actual data, saved in archive

My task is to get, say, 5 last samples of point from archive using analysis of element and then analyze amplitudes and time deltas between timestamps of this samples. Value of source PI point is changed with period of 1 sec. So, to get timestamps, I tried two ways: nested calls of PrevEvent and RecordedValuesByCount('gen','*', 5) with MapData(array, TimeStamp($val)). Values of source point are updated every second. If change in amplitude is sufficient, data goes to archive, if value not changes, it is omitted. All good and time deltas are different in accordance with PI compression algorithm. I check archive with SMT archive editor. With evaluate tool of analysis all works correct. Calculated by analysis time deltas is in accordance with archive rows.   But in runtime I watch, that in output parameters of analysis time deltas all is 1 second for all samples. It seems like PrevEvent gets data from some Data Pipe (on Time series data window) or snapshots, not from archive table. What should I do, to get data exactly from archive? Version is PI AF Server 2.10.9.593, subsystems is  3.4.445.688.