* limitations under the License.
*
******************************************************************/
-#include "oic_string.h"
+/*
+ * SysTimer.h
+ */
-#include <string.h>
-#include "oic_malloc.h"
+#ifndef SYSTIMER_H_
+#define SYSTIMER_H_
-char *OICStrdup(const char *str)
+#include <stdio.h>
+#include <stdlib.h>
+#include <string>
+class SysTimer
{
- // Allocate memory for original string length and 1 extra byte for '\0'
- size_t length = strlen(str);
- char *dup = (char *)OICMalloc(length + 1);
- if (NULL != dup)
- {
- memcpy(dup, str, length + 1);
- }
- return dup;
-}
+ public:
+ static std::string MilliSecondAsString();
+ static std::string UTCSecondAsString();
+};
+#endif /* SYSTIMER_H_ */