mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 05:55:02 +03:00
37d171785b
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1806 1f5c12ca-751b-0410-a591-d2e778427230
27 lines
780 B
JavaScript
27 lines
780 B
JavaScript
// file: frameset.js
|
|
|
|
// Herve Saint-Amand
|
|
// Universitaet des Saarlandes
|
|
// Tue May 13 10:00:42 2008
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
function startCount () {
|
|
var startTime = (new Date()).getTime ();
|
|
var element = document.getElementById ('status');
|
|
|
|
function step () {
|
|
var secs = parseInt (((new Date()).getTime() - startTime) / 1000);
|
|
var status = "(elapsed: " + secs + " seconds)";
|
|
if (top.numSentences != null)
|
|
status += " (" + top.numSentences + " segments)";
|
|
else
|
|
setTimeout (step, 1000);
|
|
element.innerHTML = status;
|
|
}
|
|
|
|
step ();
|
|
}
|
|
|
|
//-----------------------------------------------------------------------------
|