Skip to content

Commit

Permalink
Re-declare start variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
clorton committed Jan 25, 2024
1 parent f671b63 commit f6dd3f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/idmextensions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ PyObject *idm_get_genomes(PyObject *args)
size_t current_interval = 0;
size_t percent = 0;
std::vector<uint32_t> interval_lengths;
// DEBUG ONLY clock_t start, end;
clock_t start;
// DEBUG ONLY clock_t end;
// DEBUG ONLY float elapsed;

DPRINT("idm_get_genomes: calling PyArg_ParseTuple()...\n");
Expand Down Expand Up @@ -212,7 +213,7 @@ PyObject *idm_get_genomes(PyObject *args)
stride = PyArray_STRIDES(array)[0];
pids = nd_sample_ids ? (uint32_t*)PyArray_DATA(nd_sample_ids) : nullptr;

// DEBUG ONLY start = clock();
start = clock();
for (iter = tsk_tree_first(&tree), current_interval = 0; iter == 1; iter = tsk_tree_next(&tree), ++current_interval) {
interval_lengths.push_back(uint32_t(tree.right-tree.left));
progress(percent, current_interval, tree_sequence->num_trees, start);
Expand Down

0 comments on commit f6dd3f2

Please sign in to comment.