Display process time

This commit is contained in:
斟酌 鵬兄 2022-08-07 02:14:08 +09:00
parent e48346de0d
commit bc7b440924
2 changed files with 17 additions and 0 deletions

View File

@ -54,6 +54,22 @@
navControl();
initBackgroundParallax();
initArchiveButtons();
displayProcessTime();
};
var displayProcessTime = function()
{
var ms = document.lastChild;
if( ms.nodeType == document.COMMENT_NODE && ms.textContent && ms.textContent.match( /^\d+$/ ) )
{
ms = ( Number( ms.textContent ) * 1e-6 ).toFixed( 2 ) + "ms";
var copysign = Dand.glass( "copysign" );
if( copysign.length )
{
copysign = copysign[0];
copysign.insertBefore( Dand.wrap( "span", false, "ptime", ms ), copysign.firstChild );
}
}
};
var initArchiveButtons = function()

View File

@ -33,4 +33,5 @@ footer {
.copysign > a {
color: #BBB;
vertical-align: middle;
}