Skip to content

Commit

Permalink
Update frame_time attribute in FrameDataRecordGroup from unitless to …
Browse files Browse the repository at this point in the history
…s. (#1672)
  • Loading branch information
hchen99 authored Mar 21, 2024
1 parent 8f5a1e8 commit d4f92cc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions include/trick/FrameDataRecordGroup.hh
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ namespace Trick {
/** Thread start time */
long long start_time ;

/** Thread total frame scheduled time in tics*/
/** Thread total frame scheduled time in tics */
long long frame_sched_time ;

/** Thread total frame scheduled time in seconds*/
double frame_time ;
/** Thread total frame scheduled time in seconds */
double frame_time ; // trick_units(s)

} ;

Expand Down
2 changes: 1 addition & 1 deletion include/trick/JobData.hh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ namespace Trick {
long long frame_time ; /**< trick_io(**) */

/** Cumulative time in seconds used for job in frame (rt_stop_time - rt_start_time) / time_tic_value */
double frame_time_seconds; /**< trick_io(s) */
double frame_time_seconds; /**< trick_io(**) trick_units(s) */

/** Sim_object_id.id (for job identification in timeline logging) */
double frame_id; /**< trick_io(**) */
Expand Down
1 change: 1 addition & 0 deletions trick_source/sim_services/SimObject/JobData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Trick::JobData::JobData(int in_thread, int in_id, std::string in_job_class_name
next_tics = 0 ;

frame_time = 0 ;
frame_time_seconds = 0.0 ;
}

void Trick::JobData::enable() {
Expand Down

0 comments on commit d4f92cc

Please sign in to comment.