let logListener =
{
new Logger.IListener with
- member this.NewEntry severity _header mess =
+ member this.NewEntry severity header mess =
win.Dispatcher.Invoke (
fun () ->
win.textLog.Inlines.Add (Documents.Run mess)
win.textLog.Text <- ""
win.butClose.Content <- "Abort"
+ let sw = System.Diagnostics.Stopwatch ()
+ sw.Start ()
+
async {
let maybeResults =
ParasitemiaCore.Analysis.doMultipleAnalysis
| Some results ->
for id, cells in results do
state.SetResult id cells
- Logger.Log.Info "All analyses terminated successfully"
+ Logger.Log.Info $"All analyses terminated successfully (total time: %d{sw.ElapsedMilliseconds} ms)"
atLeastOneAnalysisPerformed <- true
analysisPerformed <- true
| None ->