Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NetworkedGraphicsMV3500
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Savage
NetworkedGraphicsMV3500
Commits
c913f353
Commit
c913f353
authored
3 years ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
corrected accessor
parent
44426c99
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/edu/nps/moves/dis7/utilities/DisTime.java
+10
-3
10 additions, 3 deletions
src/edu/nps/moves/dis7/utilities/DisTime.java
with
10 additions
and
3 deletions
src/edu/nps/moves/dis7/utilities/DisTime.java
+
10
−
3
View file @
c913f353
...
...
@@ -75,6 +75,13 @@ import java.util.*;
* One hundredth of a second resolution is accurate enough for most applications, and you typically don't have to worry about
* rollover, instead getting only a monotonically increasing timestamp value.</p>
*
* <p>
* TODO we are currently investigating whether <code>IEEE_ABSOLUTE</code> together with
* <code>epochLvc</code> normalization of time reference is sufficient for LVC simulation.
* Further work is upgrading DisTime support to use the <code>java.time</code> library.
* Of note is that DISv8 intends to use a 64-bit timestamp.
* </p>
*
* <p><b>TODO: timestamp normalization to an initial reference time.</b>
* Functionality is needed to define a shared common time origin (epochLvc) and also to
* precisely adjust stream timestamps when coordinating recorded PDU playback within LVC applications.
...
...
@@ -450,12 +457,12 @@ public class DisTime
}
/** Set Instant value as epochLvc for zero-based clock, meaning timestamps normalized to 0 at that initial starting time
* @param newEpoch Instant corresponding to first PDU in series, considered time zero
* @param newEpoch
Lvc
Instant corresponding to first PDU in series, considered time zero
*/
public
static
void
setEpochLvc
(
java
.
time
.
Instant
newEpoch
)
public
static
void
setEpochLvc
(
java
.
time
.
Instant
newEpoch
Lvc
)
{
applyEpochLvc
=
true
;
setE
pochLvc
(
newEpoch
)
;
e
pochLvc
=
newEpoch
Lvc
;
}
/** Get initial timestamp for zero-based clock, meaning all timestamps are measured with respect to given starting time
* @return whether localhost is synchronized to time reference
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment