RunState.h: Deprecate misleadingly named current_packet_timestamp()

This returns current_pseudo, naming it current_packet_timestamp()
is actively misleading.
This commit is contained in:
Arne Welzel 2024-11-11 19:47:23 +01:00
parent 402b768787
commit 54d28a2179
2 changed files with 3 additions and 2 deletions

View file

@ -1867,11 +1867,11 @@ double current_time(bool real) {
iosource::PktSrc* src = iosource_mgr->GetPktSrc();
if ( run_state::is_processing_suspended() )
return run_state::current_packet_timestamp();
return run_state::detail::current_pseudo;
// We don't scale with pseudo_realtime here as that would give us a
// jumping real-time.
return run_state::current_packet_timestamp() + (t - run_state::current_packet_wallclock());
return run_state::detail::current_pseudo + (t - run_state::current_packet_wallclock());
}
struct timeval double_to_timeval(double t) {