moved reader out of miSim, went to event-based guidance

This commit is contained in:
2026-03-03 15:53:22 -08:00
parent 117d34590e
commit f40d2bfd84
8 changed files with 34 additions and 25 deletions

View File

@@ -419,7 +419,13 @@ int sendTarget(int clientId, const double* coords) {
return 0;
}
std::cout << "Sent TARGET to client " << clientId << ": "
// Timestamp
time_t now = time(nullptr);
struct tm* lt = localtime(&now);
char ts[16];
strftime(ts, sizeof(ts), "%H:%M:%S", lt);
std::cout << ts << " Sent TARGET to client " << clientId << ": "
<< coords[0] << "," << coords[1] << "," << coords[2] << "\n";
return 1;
}