Skip to content
Snippets Groups Projects
Commit d9f8aff9 authored by Ballabriga Clément's avatar Ballabriga Clément
Browse files

Fix compilation error related to elm::Time

parent ad8ca1d9
Branches master
No related tags found
No related merge requests found
......@@ -649,7 +649,7 @@ void DynamicBranchingAnalysis::processBB(WorkSpace *ws, CFG *cfg, Block *b) {
watch.start();
for (int i=0; i < NB_EXEC; i++) {addTargetToBB(bb);}
watch.stop();
otawa::ot::time t = watch.delay();
otawa::ot::time t = watch.delay().time();
cout << " ---------- Time stat for " << bb << "------------" << endl;
cout << " Number of instructions in this BB : " << bb->count() << endl;
cout << " Number executions : " << NB_EXEC << endl;
......
......@@ -134,7 +134,7 @@ void GlobalAnalysis::processWorkSpace(WorkSpace *ws) {
watch.start() ;
for (int i=0 ; i < TIME_NB_EXEC_GLOBAL ; i++) {hai->solve(cfg) ; }
watch.stop() ;
otawa::ot::time t = watch.delay() ;
otawa::ot::time t = watch.delay().time() ;
cout << " ---------- Time stat for Global Analysis -----------" << endl ;
cout << " Number executions : " << TIME_NB_EXEC_GLOBAL << endl ;
cout << " Total time (microsec): " << t << endl ;
......
......@@ -463,11 +463,11 @@ void Processor::run(WorkSpace *ws) {
if(isTimed()) {
swatch.stop();
if(recordsStats())
RUNTIME(*stats) = swatch.delay();
RUNTIME(*stats) = swatch.delay().time();
if(logFor(LOG_CFG))
log << " (" << ((double)swatch.delay() / 1000) << "ms)";
log << " (" << ((double)swatch.delay().time() / 1000) << "ms)";
else if(logFor(LOG_PROC))
log << "INFO: time = " << ((double)swatch.delay() / 1000) << "ms";
log << "INFO: time = " << ((double)swatch.delay().time() / 1000) << "ms";
}
if(logFor(LOG_CFG))
log << io::endl;
......
......@@ -561,7 +561,7 @@ void Script::work(WorkSpace *ws) {
ws->run(proc, list, true);
if(timed) {
sw.stop();
cerr << "INFO: time(" << *name << ") = "<< (float(sw.delay()) / 1000) << "ms\n";
cerr << "INFO: time(" << *name << ") = "<< (float(sw.delay().time()) / 1000) << "ms\n";
}
break;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment