mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Simplify code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4547 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a95078dc24
commit
69e79e0be4
@ -75,9 +75,7 @@ static TimeRecord getTimeRecord() {
|
||||
Result.Elapsed = T.tv_sec + T.tv_usec/1000000.0;
|
||||
Result.UserTime = RU.ru_utime.tv_sec + RU.ru_utime.tv_usec/1000000.0;
|
||||
Result.SystemTime = RU.ru_stime.tv_sec + RU.ru_stime.tv_usec/1000000.0;
|
||||
|
||||
struct mallinfo MI = mallinfo();
|
||||
Result.MemUsed = MI.uordblks;
|
||||
Result.MemUsed = mallinfo().uordblks;
|
||||
return Result;
|
||||
}
|
||||
|
||||
|
@ -75,9 +75,7 @@ static TimeRecord getTimeRecord() {
|
||||
Result.Elapsed = T.tv_sec + T.tv_usec/1000000.0;
|
||||
Result.UserTime = RU.ru_utime.tv_sec + RU.ru_utime.tv_usec/1000000.0;
|
||||
Result.SystemTime = RU.ru_stime.tv_sec + RU.ru_stime.tv_usec/1000000.0;
|
||||
|
||||
struct mallinfo MI = mallinfo();
|
||||
Result.MemUsed = MI.uordblks;
|
||||
Result.MemUsed = mallinfo().uordblks;
|
||||
return Result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user