Project

General

Profile

Support #2201 » TimeUtil.h

Wim Dumon, 09/16/2013 06:14 PM

 
// This may look like C code, but it's really -*- C++ -*-
/*
* Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
*
* See the LICENSE file for terms of use.
*/
#ifndef TIMEUTIL_H_
#define TIMEUTIL_H_

#include <Wt/WDllDefs.h>

struct timeval;

namespace Wt {

class TimeImpl;

class WT_API Time
{
public:
Time(); // now
~Time(); // now
Time(const Time &other);

Time operator+ (int msec) const;
Time& operator+= (int msec);
Time& operator= (const Time &other);

int operator- (const Time& other) const;

private:
// Pointer to avoid inclusion of windows header files in wt
class TimeImpl *t_;
};

}

#endif // TIMEUTIL_H_
(2-2/2)