summaryrefslogtreecommitdiff
path: root/include/llvm/Support/Timer.h
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2005-01-08 20:15:57 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2005-01-08 20:15:57 +0000
commite269a1ac1cd795135e91e42527a9814f4807c75a (patch)
treef8630bf255a9d6feee23601bd82f592cb8614dcb /include/llvm/Support/Timer.h
parent9dacd128b4539b8100e97b973ec10cc36d712849 (diff)
downloadllvm-e269a1ac1cd795135e91e42527a9814f4807c75a.tar.gz
llvm-e269a1ac1cd795135e91e42527a9814f4807c75a.tar.bz2
llvm-e269a1ac1cd795135e91e42527a9814f4807c75a.tar.xz
Use size_t instead of long to represent memory usage. long is 32 bits
on 64-bit Windows. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19393 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/Timer.h')
-rw-r--r--include/llvm/Support/Timer.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/Support/Timer.h b/include/llvm/Support/Timer.h
index a31dd3d93c..86194d16b6 100644
--- a/include/llvm/Support/Timer.h
+++ b/include/llvm/Support/Timer.h
@@ -36,9 +36,9 @@ class Timer {
double Elapsed; // Wall clock time elapsed in seconds
double UserTime; // User time elapsed
double SystemTime; // System time elapsed
- long MemUsed; // Memory allocated (in bytes)
- long PeakMem; // Peak memory used
- long PeakMemBase; // Temporary for peak calculation...
+ size_t MemUsed; // Memory allocated (in bytes)
+ size_t PeakMem; // Peak memory used
+ size_t PeakMemBase; // Temporary for peak calculation...
std::string Name; // The name of this time variable
bool Started; // Has this time variable ever been started?
TimerGroup *TG; // The TimerGroup this Timer is in.
@@ -50,8 +50,8 @@ public:
double getProcessTime() const { return UserTime+SystemTime; }
double getWallTime() const { return Elapsed; }
- long getMemUsed() const { return MemUsed; }
- long getPeakMem() const { return PeakMem; }
+ size_t getMemUsed() const { return MemUsed; }
+ size_t getPeakMem() const { return PeakMem; }
std::string getName() const { return Name; }
const Timer &operator=(const Timer &T) {