X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/99ec08fb32d4b65c88628e45f9ebdb26741b9674..8bdfda4ed37966fcac00b37ddca740afaba48b28:/process.cpp?ds=sidebyside diff --git a/process.cpp b/process.cpp index 34590f3..99bd039 100644 --- a/process.cpp +++ b/process.cpp @@ -110,6 +110,10 @@ int process::run() break; if (opt::lb_maxiter && lb_iter >= opt::lb_maxiter) break; + if (opt::time_limit && MSG_get_clock() >= opt::time_limit) { + VERB2("Reached time limit: %g/%g", MSG_get_clock(), opt::time_limit); + break; + } // block on receiving unless there is something to compute or // to send