summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2025-03-26 16:50:06 -0300
committerJaron Kent-Dobias <jaron@kent-dobias.com>2025-03-26 16:50:06 -0300
commit481f13c6a3cf93e9eded54134a860e715e0eeed5 (patch)
treed5618d3ce901c462745874d5c8013d3e79115d43
parentba1acc33bca14cc23234bdfea0d25b4247c7d6cb (diff)
downloadcode-481f13c6a3cf93e9eded54134a860e715e0eeed5.tar.gz
code-481f13c6a3cf93e9eded54134a860e715e0eeed5.tar.bz2
code-481f13c6a3cf93e9eded54134a860e715e0eeed5.zip
Added timestamp to filename.
-rw-r--r--walk.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/walk.cpp b/walk.cpp
index ded191a..a755a98 100644
--- a/walk.cpp
+++ b/walk.cpp
@@ -170,7 +170,8 @@ int main(int argc, char* argv[]) {
Real timeSinceWrite = Δw;
- std::ofstream outfile(std::to_string(N) + "_" + std::to_string(E) + "_" + std::to_string(std::log10(Δt)) + "_" + std::to_string(Δw) + ".dat", std::ios::out | std::ios::binary);
+ auto tag = std::chrono::high_resolution_clock::now();
+ std::ofstream outfile(std::to_string(N) + "_" + std::to_string(E) + "_" + std::to_string(-std::log10(Δt)) + "_" + std::to_string(Δw) + "_" + std::to_string(tag.time_since_epoch().count())+ ".dat", std::ios::out | std::ios::binary);
for (Real Jᵢ : model.J) {
float Jif = Jᵢ;