MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / get_cm_delta

Method get_cm_delta

DSView/pv/view/view.cpp:1143–1152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1141}
1142
1143QString View::get_cm_delta(int index1, int index2)
1144{
1145 if (index1 == index2)
1146 return "0";
1147
1148 uint64_t samples1 = get_cursor_samples(index1);
1149 uint64_t samples2 = get_cursor_samples(index2);
1150 uint64_t delta_sample = (samples1 > samples2) ? samples1 - samples2 : samples2 - samples1;
1151 return _ruler->format_real_time(delta_sample, _session->cur_snap_samplerate());
1152}
1153
1154QString View::get_index_delta(uint64_t start, uint64_t end)
1155{

Callers 1

update_distMethod · 0.80

Calls 2

format_real_timeMethod · 0.80
cur_snap_samplerateMethod · 0.80

Tested by

no test coverage detected