aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/apps/vespa-attribute-inspect/vespa-attribute-inspect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchlib/src/apps/vespa-attribute-inspect/vespa-attribute-inspect.cpp')
-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 f4de610a06d..245f082a2db 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);
- fastos::StopWatch timer;
+ vespalib::Timer timer;
load(ptr);
- std::cout << "load time: " << timer.elapsed().sec() << " seconds " << std::endl;
+ std::cout << "load time: " << vespalib::to_s(timer.elapsed()) << " seconds " << std::endl;
std::cout << "numDocs: " << ptr->getNumDocs() << std::endl;
if (doApplyUpdate) {
- timer.restart();
+ timer = vespalib::Timer();
applyUpdate(ptr);
- std::cout << "update time: " << timer.elapsed().sec() << " seconds " << std::endl;
+ std::cout << "update time: " << vespalib::to_s(timer.elapsed()) << " 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.restart();
+ timer = vespalib::Timer();
ptr->save(saveFile);
- std::cout << "save time: " << timer.elapsed().sec() << " seconds " << std::endl;
+ std::cout << "save time: " << vespalib::to_s(timer.elapsed()) << " seconds " << std::endl;
}
return 0;