mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
better wallet.dat flush, consolidated QueryPerformanceCounter, PRI64d printf portability
This commit is contained in:
parent
fc0e97a70e
commit
7be46ce487
10 changed files with 121 additions and 75 deletions
6
main.cpp
6
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue