mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-30 00:35:05 +00:00
log how long LoadExternalBlockFile() takes in ms (Benchmark)
This commit is contained in:
parent
0825aee8f4
commit
746f502a79
@ -2146,6 +2146,8 @@ void PrintBlockTree()
|
|||||||
|
|
||||||
bool LoadExternalBlockFile(FILE* fileIn)
|
bool LoadExternalBlockFile(FILE* fileIn)
|
||||||
{
|
{
|
||||||
|
int64 nStart = GetTimeMillis();
|
||||||
|
|
||||||
int nLoaded = 0;
|
int nLoaded = 0;
|
||||||
{
|
{
|
||||||
LOCK(cs_main);
|
LOCK(cs_main);
|
||||||
@ -2198,7 +2200,7 @@ bool LoadExternalBlockFile(FILE* fileIn)
|
|||||||
__PRETTY_FUNCTION__);
|
__PRETTY_FUNCTION__);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
printf("Loaded %i blocks from external file\n", nLoaded);
|
printf("Loaded %i blocks from external file in %"PRI64d"ms\n", nLoaded, GetTimeMillis() - nStart);
|
||||||
return nLoaded > 0;
|
return nLoaded > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user