Skip to content

Commit

Permalink
Print FPS for mask calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
peckto committed Apr 7, 2021
1 parent 6b8ce1b commit bceaaf1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions deepseg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -548,14 +548,15 @@ int main(int argc, char* argv[]) {
}

// timing details..
printf("lock:%9ld [grab:%9ld retr:%9ld] copy:%9ld open:%9ld tflt:%9ld mask:%9ld post:%9ld v4l2:%9ld ",
printf("lock:%9ld [grab:%9ld retr:%9ld] copy:%9ld open:%9ld mask:%9ld tflt:%9ld (%5.2f FPS) post:%9ld v4l2:%9ld ",
diffnanosecs(ti.lockns,ti.retrns),
diffnanosecs(ti.grabns, ti.lastns),
diffnanosecs(ti.retrns,ti.grabns),
diffnanosecs(ti.copyns,ti.lockns),
ti.openns,
ti.tfltns,
ti.maskns,
ti.tfltns,
1000000000./ti.tfltns,
diffnanosecs(ti.postns,ti.copyns),
diffnanosecs(ti.v4l2ns,ti.postns));

Expand Down

0 comments on commit bceaaf1

Please sign in to comment.