change time start moment
This commit is contained in:
parent
3d74767e31
commit
cf609758fd
3 changed files with 5 additions and 4 deletions
|
|
@ -109,9 +109,10 @@ function Benchmark(bench) {
|
||||||
|
|
||||||
|
|
||||||
function HKCheckCompletion(jsonObject) {
|
function HKCheckCompletion(jsonObject) {
|
||||||
|
var benchStart = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new Date();
|
||||||
// start benchmark
|
// start benchmark
|
||||||
// benchHKCCBegin = new Date();
|
// benchHKCCBegin = new Date();
|
||||||
benchmarkTimes.CheckCompletion.timeStart = new Date();
|
benchmarkTimes.CheckCompletion.timeStart = benchStart;
|
||||||
var HKPlayerData;
|
var HKPlayerData;
|
||||||
var HKWorldItems;
|
var HKWorldItems;
|
||||||
var HKSceneData;
|
var HKSceneData;
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -108,11 +108,11 @@ function Benchmark(bench) {
|
||||||
* Main Function. Checks Hollow Knight game completion by analyzing the save file
|
* Main Function. Checks Hollow Knight game completion by analyzing the save file
|
||||||
* @param {object} jsonObject Decoded save data in JavaScript Object Notation form (JSON)
|
* @param {object} jsonObject Decoded save data in JavaScript Object Notation form (JSON)
|
||||||
*/
|
*/
|
||||||
function HKCheckCompletion(jsonObject) {
|
function HKCheckCompletion(jsonObject, benchStart = new Date()) {
|
||||||
|
|
||||||
// start benchmark
|
// start benchmark
|
||||||
// benchHKCCBegin = new Date();
|
// benchHKCCBegin = new Date();
|
||||||
benchmarkTimes.CheckCompletion.timeStart = new Date();
|
benchmarkTimes.CheckCompletion.timeStart = benchStart;
|
||||||
|
|
||||||
let HKPlayerData;
|
let HKPlayerData;
|
||||||
let HKWorldItems;
|
let HKWorldItems;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue