update amexec

This commit is contained in:
chen
2020-06-29 14:38:42 +08:00
parent 299a761988
commit d16702f038
10 changed files with 121 additions and 50 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ public:
* @brief sample process
* @return result
*/
Result Process(vector<string>& params, vector<string>& inputs, size_t idx);
Result Process(vector<string>& params, vector<string>& inputs);
private:
void DestroyResource();
+5 -1
View File
@@ -20,13 +20,14 @@
#include <algorithm>
#include <stdio.h>
#include <time.h>
#include <sys/time.h>
#define INFO_LOG(fmt, args...) fprintf(stdout, "[INFO] " fmt "\n", ##args)
#define WARN_LOG(fmt, args...) fprintf(stdout, "[WARN] " fmt "\n", ##args)
#define ERROR_LOG(fmt, args...) fprintf(stdout, "[ERROR] " fmt "\n", ##args)
using namespace std;
static size_t loop = 1;
//static size_t loop = 1;
typedef enum Result {
SUCCESS = 0,
FAILED = 1
@@ -65,7 +66,10 @@ public:
static void printCurrentTime();
static void printHelpLetter();
static double printDiffTime(time_t begin, time_t end);
static double InferenceTimeAverage(double *x, int len);
};
#pragma once