[chronojump] TRIGGER output file with datetime



commit 8274c7ef9d2327259d6be5158c8371d4080e3623
Author: Xavier de Blas <xaviblas gmail com>
Date:   Mon Mar 6 09:17:51 2017 +0100

    TRIGGER output file with datetime

 src/encoderCapture.cs |    2 +-
 src/util.cs           |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/encoderCapture.cs b/src/encoderCapture.cs
index 6ff0ee0..3356aba 100644
--- a/src/encoderCapture.cs
+++ b/src/encoderCapture.cs
@@ -948,7 +948,7 @@ public class BoolMsList
                        return;
 
                LogB.Debug("runEncoderCaptureCsharp saving triggers");
-               TextWriter writer = File.CreateText(Util.GetEncoderTriggerFileName());
+               TextWriter writer = File.CreateText(Util.GetEncoderTriggerDateTimeFileName());
 
                foreach(BoolMs boolMs in l)
                        writer.WriteLine(boolMs.ToString());
diff --git a/src/util.cs b/src/util.cs
index 39ff420..2b6fabe 100644
--- a/src/util.cs
+++ b/src/util.cs
@@ -965,6 +965,9 @@ public class Util
        public static string GetEncoderTriggerFileName() {
                return Path.Combine(Path.GetTempPath(), "encoder_trigger.txt");
        }
+       public static string GetEncoderTriggerDateTimeFileName() {
+               return Path.Combine(Path.GetTempPath(), "encoder_trigger_" + DateTime.Now.ToString() + 
".txt");
+       }
 
        /********** end of encoder paths ************/
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]