Skip to content

Commit

Permalink
Added some timing.
Browse files Browse the repository at this point in the history
  • Loading branch information
emeryberger committed Aug 1, 2019
1 parent 9eef300 commit d420528
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/App.tsx
Expand Up @@ -48,7 +48,9 @@ export default class App extends React.Component<AppProps, AppState> {
numFixes : this.proposed_fixes_length });
}

// Discount the score of proposed fixes that cross formatting regimes (e.g., different colors).
adjust_fix_scores = async(context, backupSheet, origin_col, origin_row) => {
let t = new Timer("adjust_fix_scores");
const fixes = this.proposed_fixes;
this.proposed_fixes = [];

Expand Down Expand Up @@ -81,7 +83,8 @@ export default class App extends React.Component<AppProps, AppState> {

// Sync to get the data from the workbook.
await context.sync();

t.split("got formatting info.");

// console.log(JSON.stringify(propertiesToGet.value));

for (let k in fixes) {
Expand Down Expand Up @@ -141,6 +144,7 @@ export default class App extends React.Component<AppProps, AppState> {
}
this.proposed_fixes.push([score, first, second]);
}
t.split("done.");
}


Expand Down

0 comments on commit d420528

Please sign in to comment.