Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <QString>
- #include <QVector>
- #ifndef _DEBUG_
- template <class T>
- class Profile {
- //! Identify this profile
- QString mId;
- // Store the type
- QVector <T> mData;
- //! Just in case we're logging things really fast, we want to have a delta
- // time to make sure we don't have data points "lining up"
- float mDelta;
- public:
- // Setup a profile object
- explicit Profile (const QString &id) : mId (id) {
- mData.clear();
- }
- //! Pass a value to the profiler
- Profile & operator << (T &value);
- Profile & operator << (const T &value);
- };
- class Profiler {
- };
- #endif
- int main (int argc, char *argv[]) {
- return 0;
- }
Add Comment
Please, Sign In to add comment