28 lines
527 B
C
28 lines
527 B
C
|
|
#ifndef _H_ALGORITHM_LOOP_LEN_H
|
||
|
|
#define _H_ALGORITHM_LOOP_LEN_H
|
||
|
|
|
||
|
|
#include <eqpalg/AlgCommonDefine.h>
|
||
|
|
#include <eqpalg/alg_base.h>
|
||
|
|
#include <zcus/IHDBTools.h>
|
||
|
|
#include <string>
|
||
|
|
#include <iostream>
|
||
|
|
#include <iomanip>
|
||
|
|
|
||
|
|
class AlgLoopLen:virtual public AlgBase
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
AlgLoopLen(const string name,const Json::Value rulejson, const string ruleId);
|
||
|
|
|
||
|
|
virtual ~AlgLoopLen();
|
||
|
|
|
||
|
|
public:
|
||
|
|
|
||
|
|
virtual int init() override;
|
||
|
|
virtual int calculate(string& outjson);
|
||
|
|
|
||
|
|
private:
|
||
|
|
time_t m_start;
|
||
|
|
double looplen_start;
|
||
|
|
};
|
||
|
|
#endif
|