time: Changing time units to have int64_t type instead of double
Change-Id: Ic5bbf0a85c20e84fd13af593b4a65d2625153843
diff --git a/include/ndn-cpp/c/common.h b/include/ndn-cpp/c/common.h
index 54a080c..0cb68d5 100644
--- a/include/ndn-cpp/c/common.h
+++ b/include/ndn-cpp/c/common.h
@@ -19,12 +19,12 @@
/**
* A time interval represented as the number of milliseconds.
*/
-typedef double ndn_Milliseconds;
+typedef int64_t ndn_Milliseconds;
/**
* The calendar time represented as the number of milliseconds since 1/1/1970.
*/
-typedef double ndn_MillisecondsSince1970;
+typedef int64_t ndn_MillisecondsSince1970;
#ifdef __cplusplus
}
diff --git a/include/ndn-cpp/common.hpp b/include/ndn-cpp/common.hpp
index 9a79f62..749cb95 100644
--- a/include/ndn-cpp/common.hpp
+++ b/include/ndn-cpp/common.hpp
@@ -73,12 +73,12 @@
/**
* A time interval represented as the number of milliseconds.
*/
-typedef double Milliseconds;
+typedef int64_t Milliseconds;
/**
* The calendar time represented as the number of milliseconds since 1/1/1970.
*/
-typedef double MillisecondsSince1970;
+typedef int64_t MillisecondsSince1970;
/**
* Return the hex representation of the bytes in array.