# HG changeset patch # User Sebastien Jodogne # Date 1671811093 -3600 # Node ID 0cb8796c2a9b4a81b0073e0958b98999f139aaa6 # Parent 84ad648b86ac18d9c33ad688cf8fef5ca97d4ba1 measure time for deep learning diff -r 84ad648b86ac -r 0cb8796c2a9b Applications/StoneWebViewer/WebApplication/app.js --- a/Applications/StoneWebViewer/WebApplication/app.js Tue Dec 20 08:50:56 2022 +0100 +++ b/Applications/StoneWebViewer/WebApplication/app.js Fri Dec 23 16:58:13 2022 +0100 @@ -606,7 +606,8 @@ virtualSeriesThumbnails: {}, deepLearningReady: false, - deepLearningProgress: 0 // Floating-point number in the range [0..1] + deepLearningProgress: 0, // Floating-point number in the range [0..1] + deepLearningStartTime: null } }, computed: { @@ -1294,6 +1295,7 @@ ApplyDeepLearning: function() { stone.ApplyDeepLearningModel(this.GetActiveCanvas()); + app.deepLearningStartTime = performance.now(); }, ChangeActiveSeries: function(offset) { @@ -1734,4 +1736,5 @@ window.addEventListener('DeepLearningStep', function(args) { app.deepLearningProgress = args.detail.progress; + console.log('Elapsed time: ' + Math.round(performance.now() - app.deepLearningStartTime) + 'ms'); });