FreeCalypso > hg > freecalypso-tools
comparison loadtools/flprogsrec.c @ 692:185c9bf208d3
loadtools operation time reporting: two digits for seconds
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 11 Mar 2020 04:15:45 +0000 |
parents | 815c3f8bcff1 |
children |
comparison
equal
deleted
inserted
replaced
691:8bea9cdd8a89 | 692:185c9bf208d3 |
---|---|
322 return(-1); | 322 return(-1); |
323 } | 323 } |
324 duration = last_time - initial_time; | 324 duration = last_time - initial_time; |
325 mm = duration / 60; | 325 mm = duration / 60; |
326 ss = duration - mm * 60; | 326 ss = duration - mm * 60; |
327 printf("Operation completed in %um%us\n", mm, ss); | 327 printf("Operation completed in %um%02us\n", mm, ss); |
328 | 328 |
329 /* reset flash to read mode */ | 329 /* reset flash to read mode */ |
330 if (bi->ops->reset_cmd(bi) < 0) | 330 if (bi->ops->reset_cmd(bi) < 0) |
331 return(-1); | 331 return(-1); |
332 printf("Verifying CRC-32 of %u programmed region(s)\n", nregions); | 332 printf("Verifying CRC-32 of %u programmed region(s)\n", nregions); |