Total time spent loading implemented

main
Inga 🏳‍🌈 13 years ago
parent ac61771ce6
commit 742794bb63
  1. 2
      Builder/IISMainHandler/build.txt
  2. 8
      FLocal.IISHandler/handlers/AbstractGetHandler.cs
  3. 8
      FLocal.IISHandler/handlers/request/AbstractPostHandler.cs
  4. 1
      Resources/FLocal/templates/Modern/elems/Main.xslt

@ -38,10 +38,14 @@ namespace FLocal.IISHandler.handlers {
}
private XDocument getData(WebContext context) {
DateTime start = DateTime.Now;
var specificData = this.getSpecificData(context);
var commonData = this.getCommonData(context);
return new XDocument(
new XElement("root",
this.getSpecificData(context),
this.getCommonData(context)
specificData,
commonData,
new XElement("processingTime", (DateTime.Now-start).TotalSeconds)
)
);
}

@ -41,10 +41,14 @@ namespace FLocal.IISHandler.handlers.request {
}
private XDocument getData(WebContext context) {
DateTime start = DateTime.Now;
var specificData = this.Do(context);
var commonData = this.getCommonData(context);
return new XDocument(
new XElement("root",
this.Do(context),
this.getCommonData(context)
specificData,
commonData,
new XElement("processingTime", (DateTime.Now-start).TotalSeconds)
)
);
}

@ -78,6 +78,7 @@
<form action="" method="post" id="systemForm">
<input type="hidden" name="data"/>
</form>
<span>Total time spent: <xsl:value-of select="processingTime"/> seconds</span>
</div>
<xsl:if test="get/param[@name='debug'] = 'true'">
<xsl:text disable-output-escaping="yes"><![CDATA[<!--]]></xsl:text>

Loading…
Cancel
Save