HaloisAWA @ 2024-11-28 23:21:09
rt
by Joe2011 @ 2024-11-28 23:22:41
空间:
bool be;
...//变量
bool nd;
cerr<<(&nd-&be)/1024.0/1024;
by syp11 @ 2024-11-28 23:58:41
时间:(慎用,跑的很慢,正式评测中建议删除或保留很少使用)
1.0*clock()/CLOCKS_PER_SEC
by Kazeno_Akina @ 2024-11-29 00:41:19
@HaloisAWA 运行的时候在终端命令前面加 /bin/time
。
by Rem_CandleFire @ 2024-11-29 07:23:59
@HaloisAWA
noilinux
time ./a.exe
/bin/time -v ./a.exe
by Wzhone @ 2024-11-29 08:15:12
@HaloisAWA
/usr/bin/time -f "memory=%M KB && time=%U s" ./<code>