summaryrefslogtreecommitdiffstats
path: root/searchlib/src/apps/vespa-attribute-inspect
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-12-16 21:34:54 -0600
committerGitHub <noreply@github.com>2019-12-16 21:34:54 -0600
commit8a02ad01e25ed2483bd0f1c8abdec8eabf44634a (patch)
tree253ee93b860f20a9c1deeb4cf0f6a31945bf6bf8 /searchlib/src/apps/vespa-attribute-inspect
parent2f8e6f0cb74ef77a645e7543975aca736f7649a9 (diff)
Revert "Balder/remove steadytimestamp 2"
Diffstat (limited to 'searchlib/src/apps/vespa-attribute-inspect')
-rw-r--r--searchlib/src/apps/vespa-attribute-inspect/vespa-attribute-inspect.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/searchlib/src/apps/vespa-attribute-inspect/vespa-attribute-inspect.cpp b/searchlib/src/apps/vespa-attribute-inspect/vespa-attribute-inspect.cpp
index 245f082a2db..f4de610a06d 100644
--- a/searchlib/src/apps/vespa-attribute-inspect/vespa-attribute-inspect.cpp
+++ b/searchlib/src/apps/vespa-attribute-inspect/vespa-attribute-inspect.cpp
@@ -165,16 +165,16 @@ LoadAttribute::Main()
c.setFastSearch(doFastSearch);
c.setHuge(doHuge);
AttributePtr ptr = AttributeFactory::createAttribute(fileName, c);
- vespalib::Timer timer;
+ fastos::StopWatch timer;
load(ptr);
- std::cout << "load time: " << vespalib::to_s(timer.elapsed()) << " seconds " << std::endl;
+ std::cout << "load time: " << timer.elapsed().sec() << " seconds " << std::endl;
std::cout << "numDocs: " << ptr->getNumDocs() << std::endl;
if (doApplyUpdate) {
- timer = vespalib::Timer();
+ timer.restart();
applyUpdate(ptr);
- std::cout << "update time: " << vespalib::to_s(timer.elapsed()) << " seconds " << std::endl;
+ std::cout << "update time: " << timer.elapsed().sec() << " seconds " << std::endl;
}
if (doPrintContent) {
@@ -191,9 +191,9 @@ LoadAttribute::Main()
if (doSave) {
vespalib::string saveFile = fileName + ".save";
std::cout << "saving attribute: " << saveFile << std::endl;
- timer = vespalib::Timer();
+ timer.restart();
ptr->save(saveFile);
- std::cout << "save time: " << vespalib::to_s(timer.elapsed()) << " seconds " << std::endl;
+ std::cout << "save time: " << timer.elapsed().sec() << " seconds " << std::endl;
}
return 0;