code cleanup in time-constraints
code cleanup in time-constraints

- remove some copied-and-pasted code when handling logging cases
- initialize variables (mainly nbroken) at its declaration
- reduced scope for interation variable
rodolforg/fet,rodolforg/fet