diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-03-26 16:50:06 -0300 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-03-26 16:50:06 -0300 |
commit | 481f13c6a3cf93e9eded54134a860e715e0eeed5 (patch) | |
tree | d5618d3ce901c462745874d5c8013d3e79115d43 | |
parent | ba1acc33bca14cc23234bdfea0d25b4247c7d6cb (diff) | |
download | code-481f13c6a3cf93e9eded54134a860e715e0eeed5.tar.gz code-481f13c6a3cf93e9eded54134a860e715e0eeed5.tar.bz2 code-481f13c6a3cf93e9eded54134a860e715e0eeed5.zip |
Added timestamp to filename.
-rw-r--r-- | walk.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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ᵢ; |