2012-08-23 21:30:32 +00:00
|
|
|
// -*- c++-mode -*-
|
|
|
|
#ifndef OPERATION_H
|
|
|
|
#define OPERATION_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
class Operation {
|
|
|
|
public:
|
|
|
|
double start_time, end_time;
|
|
|
|
|
|
|
|
enum type_enum {
|
2013-03-02 13:46:39 +00:00
|
|
|
GET, SET, SASL
|
2012-08-23 21:30:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
type_enum type;
|
|
|
|
|
|
|
|
string key;
|
|
|
|
// string value;
|
|
|
|
|
|
|
|
double time() const { return (end_time - start_time) * 1000000; }
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // OPERATION_H
|