core: time::Duration, time:Point, time::now

refs #1148

Change-Id: I19c3d2f9b638797a6a36ce41a98be4463b4b7a2d
diff --git a/tests/core/time.cpp b/tests/core/time.cpp
new file mode 100644
index 0000000..caae6d0
--- /dev/null
+++ b/tests/core/time.cpp
@@ -0,0 +1,24 @@
+/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
+/**
+ * Copyright (C) 2014 Named Data Networking Project
+ * See COPYING for copyright and distribution information.
+ */
+
+#include "core/time.hpp"
+
+#include <boost/test/unit_test.hpp>
+
+namespace ndn {
+
+BOOST_AUTO_TEST_SUITE(CoreTime)
+
+BOOST_AUTO_TEST_CASE(Now)
+{
+  time::Point p1 = time::now();
+  time::Point p2 = time::now();
+  BOOST_CHECK_LE(p1, p2);
+}
+
+BOOST_AUTO_TEST_SUITE_END()
+
+} // namespace ndn