[chainmaker]add get time function in boatplatform.c
//! self header include
#include <stdlib.h>
+#include <time.h>
#include "boatplatform.h"
#include "boattypes.h"
#include "boatutility.h"
@@ -113,3 +114,10 @@ void BoatSleep(BUINT32 second)
{
sleep(second);
}
+
+BUINT64 BoatGetTimes()
+{
+ BUINT64 timesec = 0;
+ time(&timesec);
+ return timesec;
+}
\ No newline at end of file
