diff options
| author | Philip Kaufmann <[email protected]> | 2012-08-17 00:14:40 +0200 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2012-08-17 00:14:40 +0200 |
| commit | 746f502a79e6797574099e94df1b63a6844917a9 (patch) | |
| tree | 08f048d283ecd1d03ea35e532f52757ec56412e7 /src/main.cpp | |
| parent | Merge pull request #1649 from Diapolo/optionsdialog (diff) | |
| download | discoin-746f502a79e6797574099e94df1b63a6844917a9.tar.xz discoin-746f502a79e6797574099e94df1b63a6844917a9.zip | |
log how long LoadExternalBlockFile() takes in ms (Benchmark)
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 23c6d988a..9c6d4b060 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2146,6 +2146,8 @@ void PrintBlockTree() bool LoadExternalBlockFile(FILE* fileIn) { + int64 nStart = GetTimeMillis(); + int nLoaded = 0; { LOCK(cs_main); @@ -2198,7 +2200,7 @@ bool LoadExternalBlockFile(FILE* fileIn) __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; } |