aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authors_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2009-10-29 20:10:46 +0000
committers_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b>2009-10-29 20:10:46 +0000
commite8474beb6f2c5e2654f8ebc671b3dbf5fae78563 (patch)
tree31faa0f74ff1541946f6d0d5d8764be8e2564a66 /main.cpp
parentdc73b326f97f2ed7ec7b7e8485ebc9eb46e05ddb (diff)
downloadbitcoin-e8474beb6f2c5e2654f8ebc671b3dbf5fae78563.tar.xz
better wallet.dat flush, consolidated QueryPerformanceCounter, PRI64d printf portability
git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@20 1a98c847-1fd6-4fd8-948a-caf3550aa51b
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/main.cpp b/main.cpp
index 710b789200..4194333d84 100644
--- a/main.cpp
+++ b/main.cpp
@@ -2518,8 +2518,7 @@ bool BitcoinMiner()
int64 GetBalance()
{
- int64 nStart, nEnd;
- QueryPerformanceCounter((LARGE_INTEGER*)&nStart);
+ int64 nStart = PerformanceCounter();
int64 nTotal = 0;
CRITICAL_BLOCK(cs_mapWallet)
@@ -2533,8 +2532,7 @@ int64 GetBalance()
}
}
- QueryPerformanceCounter((LARGE_INTEGER*)&nEnd);
- ///printf(" GetBalance() time = %16I64d\n", nEnd - nStart);
+ ///printf(" GetBalance() time = %15"PRI64d"\n", PerformanceCounter() - nStart);
return nTotal;
}