386320d266
This is extracted from another git repo. This is the first release, and the prior commit history is not terribly interesting, so I'm not going to bother using filter-branch to try to cleanly isolate the history for this tool. Cheers.
27 lines
346 B
C++
27 lines
346 B
C++
// -*- c++-mode -*-
|
|
#ifndef OPERATION_H
|
|
#define OPERATION_H
|
|
|
|
#include <string>
|
|
|
|
using namespace std;
|
|
|
|
class Operation {
|
|
public:
|
|
double start_time, end_time;
|
|
|
|
enum type_enum {
|
|
GET, SET
|
|
};
|
|
|
|
type_enum type;
|
|
|
|
string key;
|
|
// string value;
|
|
|
|
double time() const { return (end_time - start_time) * 1000000; }
|
|
};
|
|
|
|
|
|
#endif // OPERATION_H
|