Commit c8401a71 authored by limingbo's avatar limingbo

order timestamp

parent 6daaa8b5
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.5.2, 2022-07-04T13:50:33. -->
<!-- Written by QtCreator 4.5.2, 2022-07-04T15:04:40. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
......
......@@ -48,7 +48,7 @@ int main(int argc, char *argv[])
}
for(auto task : crossTasks){
LOG(INFO) << "cross task chekc in: " << task.trajPath;
LOG(INFO) << "cross task check in: " << task.trajPath;
}
string outputPath = FLAGS_base_dir + "/multiTraj.txt";
......@@ -62,6 +62,10 @@ int main(int argc, char *argv[])
for(auto task : crossTasks){
uint32_t meshId =
stoi(boost::filesystem::path(task.trajPath).filename().string());
sort(task.periods.begin(), task.periods.end(),
[](const auto& query, const auto& target) {
return query.first < target.first;
});
ofs << meshId;
for(auto period : task.periods){
ofs << setprecision(15) << " " << period.first << " " << period.second - period.first;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment