private void WriteMessageInFile(string path, string message, bool timestamp)
    {
        message = timestamp ? exerciseManager.GetExerciseTimeFormatted() + " - " + message : message;

        using (StreamWriter sw = new StreamWriter(path, append: true))
        {
            sw.WriteLine(message);
        }
    }