Skip to content

total.time ​

Implementation level ​

TypeStatus
CML extraction template
HTML5 representation

Template attributes ​

AttributeValue
sourceMOPAC log
idtotal.time
nameTotal job time
pattern\s*TOTAL\sJOB\sTIME:.*
endPattern.*
endPattern2~
xml:basejob/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*&#123;F,cc:elapsedtime&#125;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" />