total.time
Type |
Status |
---|---|
CML extraction template |
|
HTML5 representation |
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
1<comment class="example.output" id="total.time">
2 <module cmlx:templateRef="total.time">
3 <scalar dataType="xsd:double" dictRef="cc:elapsedtime" units="si:s">24928.18</scalar>
4 </module>
5 </comment>
Template definition
1<record>\s*TOTAL\sJOB\sTIME:\s*{F,cc:elapsedtime}SECONDS</record>
2<transform process="addUnits" xpath=".//cml:scalar[@dictRef='cc:elapsedtime']" value="si:s" />
3<transform process="pullup" xpath=".//cml:scalar" />
4<transform process="delete" xpath=".//cml:list" />