total.time ​
Implementation level ​
| Type | Status |
|---|---|
| CML extraction template | |
| HTML5 representation |
Template attributes ​
| Attribute | Value |
|---|---|
| source | MOPAC log |
| id | total.time |
| name | Total job time |
| pattern | \s*TOTAL\sJOB\sTIME:.* |
| endPattern | .* |
| endPattern2 | ~ |
| xml:base | job/time.xml |
Input ​
TOTAL JOB TIME: 24928.18 SECONDS
Output text ​
xml
<comment class="example.output" id="total.time">
<module cmlx:templateRef="total.time">
<scalar dataType="xsd:double" dictRef="cc:elapsedtime" units="si:s">24928.18</scalar>
</module>
</comment>Template definition ​
xml
<record>\s*TOTAL\sJOB\sTIME:\s*{F,cc:elapsedtime}SECONDS</record>
<transform process="addUnits" xpath=".//cml:scalar[@dictRef='cc:elapsedtime']" value="si:s" />
<transform process="pullup" xpath=".//cml:scalar" />
<transform process="delete" xpath=".//cml:list" />