From 442a34c75e3108d4a93e4ffe66fa88d1a19781ef Mon Sep 17 00:00:00 2001
From: Aaron Cuevas Lopez <aacuelo@teleco.upv.es>
Date: Fri, 15 May 2015 05:10:29 +0200
Subject: [PATCH] Add Core Service to get software timestamp

---
 Source/CoreServices.cpp | 5 +++++
 Source/CoreServices.h   | 3 +++
 2 files changed, 8 insertions(+)

diff --git a/Source/CoreServices.cpp b/Source/CoreServices.cpp
index 145dc9a38..ab35566fd 100644
--- a/Source/CoreServices.cpp
+++ b/Source/CoreServices.cpp
@@ -72,6 +72,11 @@ int64 getGlobalTimestamp()
     return getMessageCenter()->getTimestamp();
 }
 
+int64 getSoftwareTimestamp()
+{
+	return getMessageCenter()->getTimestamp(true);
+}
+
 namespace RecordNode
 {
 void createNewrecordingDir()
diff --git a/Source/CoreServices.h b/Source/CoreServices.h
index c2c868dd8..6dfee9873 100644
--- a/Source/CoreServices.h
+++ b/Source/CoreServices.h
@@ -56,6 +56,9 @@ Defaults to the first hardware timestamp source or the software one if
 no hardware timestamping is present*/
 int64 getGlobalTimestamp();
 
+/** Gets the software timestamp based on a high resolution timer aligned to the start of each processing block */
+int64 getSoftwareTimestamp();
+
 namespace RecordNode
 {
 /** Forces creation of new directory on recording */
-- 
GitLab