Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
b61bcf63
Commit
b61bcf63
authored
Sep 11, 2006
by
Robert Ricci
Browse files
Add an > operator
parent
baa96f86
Changes
2
Hide whitespace changes
Inline
Side-by-side
pelab/magent/Time.cc
View file @
b61bcf63
...
...
@@ -76,6 +76,12 @@ bool Time::operator<(Time const & right) const
<
make_pair
(
right
.
data
.
tv_sec
,
right
.
data
.
tv_usec
);
}
bool
Time
::
operator
>
(
Time
const
&
right
)
const
{
return
make_pair
(
data
.
tv_sec
,
data
.
tv_usec
)
>
make_pair
(
right
.
data
.
tv_sec
,
right
.
data
.
tv_usec
);
}
bool
Time
::
operator
==
(
Time
const
&
right
)
const
{
return
make_pair
(
data
.
tv_sec
,
data
.
tv_usec
)
...
...
pelab/magent/Time.h
View file @
b61bcf63
...
...
@@ -15,6 +15,7 @@ public:
Time
operator
+
(
int
const
&
right
)
const
;
Time
operator
-
(
Time
const
&
right
)
const
;
bool
operator
<
(
Time
const
&
right
)
const
;
bool
operator
>
(
Time
const
&
right
)
const
;
bool
operator
==
(
Time
const
&
right
)
const
;
bool
operator
!=
(
Time
const
&
right
)
const
;
private:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment