Skip to content

Commit

Permalink
Update ClockTime.h
Browse files Browse the repository at this point in the history
  • Loading branch information
hockyy authored Mar 24, 2024
1 parent 5cf67cc commit d4f4021
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions content/various/ClockTime.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@ clock_t first_attempt = clock();
inline void cek_time(){
clock_t cur = clock()- first_attempt;
cerr<<"TIME : "<<(double) cur/CLOCKS_PER_SEC<<endl;
auto current = chrono::high_resolution_clock::now();
chrono::duration<double> elapsed = current - start;
// cout << fixed << setprecision(3) << elapsed.count() << "\n";
if (elapsed.count() < runtime[i].se) continue;
}

0 comments on commit d4f4021

Please sign in to comment.