@@ -160,7 +160,7 @@ func REPL(od storage.Store, input *os.File, rl ReadLiner, chanSize, bulkSize, bu
160160 fmt .Println ("Memoization enabled. Type help; to print help." )
161161 fmt .Println ()
162162 defer func () {
163- fmt .Printf ("\n \n Thanks for all those BQL queries!\n Session duration: %v\n \n " , time .Now (). Sub (sessionStart ))
163+ fmt .Printf ("\n \n Thanks for all those BQL queries!\n Session duration: %v\n \n " , time .Since (sessionStart ))
164164 }()
165165
166166 for l := range rl (done ) {
@@ -321,7 +321,7 @@ func REPL(od storage.Store, input *os.File, rl ReadLiner, chanSize, bulkSize, bu
321321 args := strings .Split ("bw " + strings .TrimSpace (l )[:len (l )- 1 ], " " )
322322 usage := "Wrong syntax\n \n \t load <graph_names_separated_by_commas> <file_path>\n "
323323 export .Eval (ctx , usage , args , driver (), bulkSize )
324- fmt .Println ("[OK] Time spent: " , time .Now (). Sub (now ))
324+ fmt .Println ("[OK] Time spent: " , time .Since (now ))
325325 done <- false
326326 continue
327327 }
@@ -330,7 +330,7 @@ func REPL(od storage.Store, input *os.File, rl ReadLiner, chanSize, bulkSize, bu
330330 args := strings .Split ("bw " + strings .TrimSpace (l [:len (l )- 1 ]), " " )
331331 usage := "Wrong syntax\n \n \t load <file_path> <graph_names_separated_by_commas>\n "
332332 load .Eval (ctx , usage , args , driver (), bulkSize , builderSize )
333- fmt .Println ("[OK] Time spent: " , time .Now (). Sub (now ))
333+ fmt .Println ("[OK] Time spent: " , time .Since (now ))
334334 done <- false
335335 continue
336336 }
@@ -355,28 +355,28 @@ func REPL(od storage.Store, input *os.File, rl ReadLiner, chanSize, bulkSize, bu
355355 } else {
356356 fmt .Printf ("Loaded %q and run %d BQL commands successfully\n \n " , path , cmds )
357357 }
358- fmt .Println ("Time spent: " , time .Now (). Sub (now ))
358+ fmt .Println ("Time spent: " , time .Since (now ))
359359 done <- false
360360 continue
361361 }
362362
363363 now := time .Now ()
364364 table , err := runBQL (ctx , l , driver (), chanSize , bulkSize , traceWriter )
365- bqlDiff := time .Now (). Sub (now )
365+ bqlDiff := time .Since (now )
366366 if err != nil {
367367 fmt .Printf ("[ERROR] %s\n " , err )
368- fmt .Println ("Time spent: " , time .Now (). Sub (now ))
368+ fmt .Println ("Time spent: " , time .Since (now ))
369369 fmt .Println ()
370370 } else {
371371 if table == nil {
372372 fmt .Printf ("[OK] 0 rows retrieved. BQL time: %v. Display time: %v\n " ,
373- bqlDiff , time .Now (). Sub (now )- bqlDiff )
373+ bqlDiff , time .Since (now )- bqlDiff )
374374 } else {
375375 if len (table .Bindings ()) > 0 {
376376 fmt .Println (table .String ())
377377 }
378378 fmt .Printf ("[OK] %d rows retrieved. BQL time: %v. Display time: %v\n " ,
379- table .NumRows (), bqlDiff , time .Now (). Sub (now )- bqlDiff )
379+ table .NumRows (), bqlDiff , time .Since (now )- bqlDiff )
380380 }
381381 }
382382 done <- false
0 commit comments