use eo::log
This commit is contained in:
parent
22ce03233e
commit
d8a1aedf01
1 changed files with 4 additions and 1 deletions
|
|
@ -25,7 +25,10 @@
|
||||||
#ifndef _EOTIMECONTINUE_H
|
#ifndef _EOTIMECONTINUE_H
|
||||||
#define _EOTIMECONTINUE_H
|
#define _EOTIMECONTINUE_H
|
||||||
|
|
||||||
|
#include <ctime>
|
||||||
|
|
||||||
#include <eoContinue.h>
|
#include <eoContinue.h>
|
||||||
|
#include <utils/eoLogger.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Termination condition until a running time is reached.
|
* Termination condition until a running time is reached.
|
||||||
|
|
@ -54,7 +57,7 @@ public:
|
||||||
time_t elapsed = (time_t) difftime(time(NULL), start);
|
time_t elapsed = (time_t) difftime(time(NULL), start);
|
||||||
if (elapsed >= max)
|
if (elapsed >= max)
|
||||||
{
|
{
|
||||||
std::cout << "STOP in eoTimeContinue: Reached maximum time [" << elapsed << "/" << max << "]" << std::endl;
|
eo::log << eo::progress << "STOP in eoTimeContinue: Reached maximum time [" << elapsed << "/" << max << "]" << std::endl;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Reference in a new issue