Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 /*
7 ** C++ interval times (ref: prinrval.h)
8 **
9 ** An interval is a period of time. The start of the interval (epoch)
10 ** must be defined by the application. The unit of time of an interval
11 ** is platform dependent, therefore so is the maximum interval that is
12 ** representable. However, that interval is never less that ~12 hours.
13 */
15 #include "rcinrval.h"
17 RCInterval::~RCInterval() { }
19 RCInterval::RCInterval(RCInterval::RCReservedInterval special): RCBase()
20 {
21 switch (special)
22 {
23 case RCInterval::now:
24 interval = PR_IntervalNow();
25 break;
26 case RCInterval::no_timeout:
27 interval = PR_INTERVAL_NO_TIMEOUT;
28 break;
29 case RCInterval::no_wait:
30 interval = PR_INTERVAL_NO_WAIT;
31 break;
32 default:
33 break;
34 }
35 } /* RCInterval::RCInterval */
37 /* rcinrval.cpp */