Migliorato calcolo tempo previsto
git-svn-id: svn://10.65.10.50/branches/R_10_00@22720 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
f498fdfba2
commit
375682c5ee
@ -265,12 +265,12 @@ TProgind::TProgind(long max, const char* txt, bool cancel, bool bar, int div)
|
|||||||
bool TProgind::setstatus(long l)
|
bool TProgind::setstatus(long l)
|
||||||
{
|
{
|
||||||
const bool ok = TIndwin::setstatus(l);
|
const bool ok = TIndwin::setstatus(l);
|
||||||
|
const clock_t c = clock();
|
||||||
if (ok && clock() > _next_update)
|
if (ok && c > _next_update)
|
||||||
{
|
{
|
||||||
update();
|
update();
|
||||||
do_events();
|
do_events();
|
||||||
_next_update = clock()+CLOCKS_PER_SEC; // Prossimo aggiornamento tra un secondo
|
_next_update = c+CLOCKS_PER_SEC; // Prossimo aggiornamento tra un secondo
|
||||||
}
|
}
|
||||||
|
|
||||||
return ok;
|
return ok;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user