Changeset 5084


Ignore:
Timestamp:
Apr 2, 2016, 5:46:40 AM (6 years ago)
Author:
Christian Schulte
Message:

o Updated to calculate durations based on 'System.nanoTime' instead of unstable

'System.currentTimeMillis'.

See #85

Location:
jomc/trunk
Files:
27 edited

Legend:

Unmodified
Added
Removed
  • jomc/trunk/jomc-model/src/main/java/org/jomc/model/modlet/DefaultModelProcessor.java

    r5038 r5084  
    304304        try
    305305        {
    306             final long t0 = System.currentTimeMillis();
     306            final long t0 = System.nanoTime();
    307307            final List<Transformer> transformers = new LinkedList<Transformer>();
    308308            final TransformerFactory transformerFactory = TransformerFactory.newInstance();
     
    369369            if ( context.isLoggable( Level.FINE ) )
    370370            {
    371                 context.log( Level.FINE, getMessage( "contextReport", count, location,
    372                                                      Long.valueOf( System.currentTimeMillis() - t0 ) ), null );
    373 
     371                context.log( Level.FINE, getMessage( "contextReport", count, location, System.nanoTime() - t0 ), null );
    374372            }
    375373
  • jomc/trunk/jomc-model/src/main/java/org/jomc/model/modlet/DefaultModelProvider.java

    r5038 r5084  
    432432            }
    433433
    434             final long t0 = System.currentTimeMillis();
     434            final long t0 = System.nanoTime();
    435435            final Text text = new Text();
    436436            text.setLanguage( "en" );
     
    490490            if ( context.isLoggable( Level.FINE ) )
    491491            {
    492                 context.log( Level.FINE, getMessage( "contextReport", count, location,
    493                                                      System.currentTimeMillis() - t0 ), null );
    494 
     492                context.log( Level.FINE, getMessage( "contextReport", count, location, System.nanoTime() - t0 ), null );
    495493            }
    496494
  • jomc/trunk/jomc-model/src/main/resources/org/jomc/model/modlet/DefaultModelProcessor.properties

    r4934 r5084  
    11# $JOMC$
    2 contextReport=Processing {0,choice,0#no "{1}" resources|1#one "{1}" resource|1<{0,number} "{1}" resources} in {2,number}ms.
     2contextReport=Processing {0,choice,0#no "{1}" resources|1#one "{1}" resource|1<{0,number} "{1}" resources} in {2,number}ns.
    33disabled={0} - Not processing model ''{1}''. Disabled.
    44illegalTransformationResult=Failure processing model ''{0}''. Illegal transformation result.
  • jomc/trunk/jomc-model/src/main/resources/org/jomc/model/modlet/DefaultModelProcessor_de.properties

    r4934 r5084  
    11# $JOMC$
    2 contextReport=Verarbeitung von {0,choice,0#keinen "{1}" Ressourcen|1#einer "{1}" Ressource|1<{0,number} "{1}" Ressourcen} in {2,number}ms.
     2contextReport=Verarbeitung von {0,choice,0#keinen "{1}" Ressourcen|1#einer "{1}" Ressource|1<{0,number} "{1}" Ressourcen} in {2,number}ns.
    33disabled={0} - Keine Verarbeitung von Modell ''{1}''. Deaktiviert.
    44illegalTransformationResult=Fehler bei der Verarbeitung von Modell ''{0}''. Ung\u00fcltiges Transformations-Ergebniss.
  • jomc/trunk/jomc-model/src/main/resources/org/jomc/model/modlet/DefaultModelProcessor_en.properties

    r4934 r5084  
    11# $JOMC$
    2 contextReport=Processing {0,choice,0#no "{1}" resources|1#one "{1}" resource|1<{0,number} "{1}" resources} in {2,number}ms.
     2contextReport=Processing {0,choice,0#no "{1}" resources|1#one "{1}" resource|1<{0,number} "{1}" resources} in {2,number}ns.
    33disabled={0} - Not processing model ''{1}''. Disabled.
    44illegalTransformationResult=Failure processing model ''{0}''. Illegal transformation result.
  • jomc/trunk/jomc-model/src/main/resources/org/jomc/model/modlet/DefaultModelProvider.properties

    r4934 r5084  
    11# $JOMC$
    22contextModulesInfo=DefaultModelProvider ${project.version} (${build.date}) ''{0}'' context modules.
    3 contextReport=Processing {0,choice,0#no "{1}" resources|1#one "{1}" resource|1<{0,number} "{1}" resources} in {2,number}ms.
     3contextReport=Processing {0,choice,0#no "{1}" resources|1#one "{1}" resource|1<{0,number} "{1}" resources} in {2,number}ns.
    44disabled={0} - Not providing model ''{1}''. Disabled.
    55foundModule=Found module ''{0} {1}''.
  • jomc/trunk/jomc-model/src/main/resources/org/jomc/model/modlet/DefaultModelProvider_de.properties

    r4934 r5084  
    11# $JOMC$
    22contextModulesInfo=DefaultModelProvider ${project.version} (${build.date}) ''{0}'' Kontext-Module.
    3 contextReport=Verarbeitung von {0,choice,0#keinen "{1}" Ressourcen|1#einer "{1}" Ressource|1<{0,number} "{1}" Ressourcen} in {2,number}ms.
     3contextReport=Verarbeitung von {0,choice,0#keinen "{1}" Ressourcen|1#einer "{1}" Ressource|1<{0,number} "{1}" Ressourcen} in {2,number}ns.
    44disabled={0} - Keine Erstellung von Modell ''{1}''. Deaktiviert.
    55foundModule=Modul ''{0} {1}'' gefunden.
  • jomc/trunk/jomc-model/src/main/resources/org/jomc/model/modlet/DefaultModelProvider_en.properties

    r4934 r5084  
    11# $JOMC$
    22contextModulesInfo=DefaultModelProvider ${project.version} (${build.date}) ''{0}'' context modules.
    3 contextReport=Processing {0,choice,0#no "{1}" resources|1#one "{1}" resource|1<{0,number} "{1}" resources} in {2,number}ms.
     3contextReport=Processing {0,choice,0#no "{1}" resources|1#one "{1}" resource|1<{0,number} "{1}" resources} in {2,number}ns.
    44disabled={0} - Not providing model ''{1}''. Disabled.
    55foundModule=Found module ''{0} {1}''.
  • jomc/trunk/jomc-modlet/src/main/java/org/jomc/modlet/DefaultModelContext.java

    r5050 r5084  
    568568
    569569        Model m = model.clone();
    570         final long t0 = System.currentTimeMillis();
     570        final long t0 = System.nanoTime();
    571571
    572572        for ( final ModelProvider provider
     
    589589        if ( this.isLoggable( Level.FINE ) )
    590590        {
    591             this.log( Level.FINE, getMessage( "findModelReport", m.getIdentifier(), System.currentTimeMillis() - t0 ),
    592                       null );
    593 
     591            this.log( Level.FINE, getMessage( "findModelReport", m.getIdentifier(), System.nanoTime() - t0 ), null );
    594592        }
    595593
     
    616614
    617615        Model processed = model;
    618         final long t0 = System.currentTimeMillis();
     616        final long t0 = System.nanoTime();
    619617
    620618        for ( final ModelProcessor processor
     
    639637        if ( this.isLoggable( Level.FINE ) )
    640638        {
    641             this.log( Level.FINE, getMessage( "processModelReport", model.getIdentifier(),
    642                                               System.currentTimeMillis() - t0 ), null );
     639            this.log( Level.FINE, getMessage( "processModelReport", model.getIdentifier(), System.nanoTime() - t0 ),
     640                      null );
    643641
    644642        }
     
    665663        }
    666664
    667         final long t0 = System.currentTimeMillis();
     665        final long t0 = System.nanoTime();
    668666        final ModelValidationReport report = new ModelValidationReport();
    669667
     
    690688        {
    691689            this.log( Level.FINE, getMessage( "validateModelReport", model.getIdentifier(),
    692                                               System.currentTimeMillis() - t0 ), null );
     690                                              System.nanoTime() - t0 ), null );
    693691
    694692        }
     
    714712        }
    715713
    716         final long t0 = System.currentTimeMillis();
     714        final long t0 = System.nanoTime();
    717715        final javax.xml.validation.Schema schema = this.createSchema( model );
    718716        final Validator validator = schema.newValidator();
     
    749747        if ( this.isLoggable( Level.FINE ) )
    750748        {
    751             this.log( Level.FINE, getMessage( "validateModelReport", model, System.currentTimeMillis() - t0 ), null );
     749            this.log( Level.FINE, getMessage( "validateModelReport", model, System.nanoTime() - t0 ), null );
    752750        }
    753751
     
    11401138        try
    11411139        {
    1142             final long t0 = System.currentTimeMillis();
     1140            final long t0 = System.nanoTime();
    11431141            final Schemas schemas = this.getModlets().getSchemas( model );
    11441142            final EntityResolver entityResolver = this.createEntityResolver( model );
     
    12061204                }
    12071205
    1208                 this.log( Level.FINE, getMessage( "creatingSchema", schemaInfo.substring( 2 ),
    1209                                                   System.currentTimeMillis() - t0 ), null );
     1206                this.log( Level.FINE, getMessage( "creatingSchema", schemaInfo.substring( 2 ), System.nanoTime() - t0 ),
     1207                          null );
    12101208
    12111209            }
     
    12401238        {
    12411239            StringBuilder packageNames = null;
    1242             final long t0 = System.currentTimeMillis();
     1240            final long t0 = System.nanoTime();
    12431241            final Schemas schemas = this.getModlets().getSchemas( model );
    12441242
     
    12661264            {
    12671265                this.log( Level.FINE, getMessage( "creatingContext", packageNames.substring( 1 ),
    1268                                                   System.currentTimeMillis() - t0 ), null );
     1266                                                  System.nanoTime() - t0 ), null );
     1267
    12691268            }
    12701269
     
    12951294            StringBuilder packageNames = null;
    12961295            StringBuilder schemaLocation = null;
    1297             final long t0 = System.currentTimeMillis();
     1296            final long t0 = System.nanoTime();
    12981297            final Schemas schemas = this.getModlets().getSchemas( model );
    12991298
     
    13491348                    this.log( Level.FINE, getMessage( "creatingMarshaller", packageNames.substring( 1 ),
    13501349                                                      schemaLocation.substring( 1 ),
    1351                                                       System.currentTimeMillis() - t0 ), null );
     1350                                                      System.nanoTime() - t0 ), null );
    13521351
    13531352                }
     
    13631362                    this.log( Level.FINE, getMessage( "creatingMarshallerWithListeners", packageNames.substring( 1 ),
    13641363                                                      schemaLocation.substring( 1 ), b.substring( 1 ),
    1365                                                       System.currentTimeMillis() - t0 ), null );
     1364                                                      System.nanoTime() - t0 ), null );
    13661365
    13671366                }
     
    13931392        {
    13941393            StringBuilder packageNames = null;
    1395             final long t0 = System.currentTimeMillis();
     1394            final long t0 = System.nanoTime();
    13961395            final Schemas schemas = this.getModlets().getSchemas( model );
    13971396
     
    14341433                {
    14351434                    this.log( Level.FINE, getMessage( "creatingUnmarshaller", packageNames.substring( 1 ),
    1436                                                       System.currentTimeMillis() - t0 ), null );
     1435                                                      System.nanoTime() - t0 ), null );
    14371436
    14381437                }
     
    14481447                    this.log( Level.FINE, getMessage( "creatingUnmarshallerWithListeners",
    14491448                                                      packageNames.substring( 1 ), b.substring( 1 ),
    1450                                                       System.currentTimeMillis() - t0 ), null );
     1449                                                      System.nanoTime() - t0 ), null );
    14511450
    14521451                }
     
    16511650
    16521651            int count = 0;
    1653             final long t0 = System.currentTimeMillis();
     1652            final long t0 = System.nanoTime();
    16541653            final List<T> sortedClasspathServices = new ArrayList<T>();
    16551654
     
    17301729                this.log( Level.FINE, getMessage( "contextReport", count,
    17311730                                                  this.getProviderLocation() + '/' + serviceClass.getName(),
    1732                                                   System.currentTimeMillis() - t0 ), null );
     1731                                                  System.nanoTime() - t0 ), null );
    17331732
    17341733            }
     
    18041803    {
    18051804        final Set<URI> resources = new HashSet<URI>();
    1806         final long t0 = System.currentTimeMillis();
     1805        final long t0 = System.nanoTime();
    18071806        int count = 0;
    18081807
     
    18731872        if ( this.isLoggable( Level.FINE ) )
    18741873        {
    1875             this.log( Level.FINE, getMessage( "contextReport", count, "META-INF/MANIFEST.MF",
    1876                                               System.currentTimeMillis() - t0 ), null );
     1874            this.log( Level.FINE, getMessage( "contextReport", count, "META-INF/MANIFEST.MF", System.nanoTime() - t0 ),
     1875                      null );
    18771876
    18781877        }
  • jomc/trunk/jomc-modlet/src/main/java/org/jomc/modlet/DefaultModletProcessor.java

    r5038 r5084  
    389389        try
    390390        {
    391             final long t0 = System.currentTimeMillis();
     391            final long t0 = System.nanoTime();
    392392            final List<Transformer> transformers = new LinkedList<Transformer>();
    393393            final TransformerFactory transformerFactory = TransformerFactory.newInstance();
     
    454454            if ( context.isLoggable( Level.FINE ) )
    455455            {
    456                 context.log( Level.FINE, getMessage( "contextReport", count, location,
    457                                                      Long.valueOf( System.currentTimeMillis() - t0 ) ), null );
    458 
     456                context.log( Level.FINE, getMessage( "contextReport", count, location, System.nanoTime() - t0 ), null );
    459457            }
    460458
  • jomc/trunk/jomc-modlet/src/main/java/org/jomc/modlet/DefaultModletProvider.java

    r5038 r5084  
    527527
    528528            Modlets modlets = null;
    529             final long t0 = System.currentTimeMillis();
     529            final long t0 = System.nanoTime();
    530530            final JAXBContext ctx = context.createContext( ModletObject.MODEL_PUBLIC_ID );
    531531            final Unmarshaller u = ctx.createUnmarshaller();
     
    570570                context.log( Level.FINE, getMessage( "contextReport",
    571571                                                     modlets != null ? modlets.getModlet().size() : 0,
    572                                                      location, System.currentTimeMillis() - t0 ), null );
     572                                                     location, System.nanoTime() - t0 ), null );
    573573
    574574            }
  • jomc/trunk/jomc-modlet/src/main/java/org/jomc/modlet/ModelContext.java

    r5050 r5084  
    622622            this.modlets.getModlet().add( modlet );
    623623
    624             long t0 = System.currentTimeMillis();
     624            long t0 = System.nanoTime();
    625625            final Modlets provided = this.findModlets( this.modlets );
    626626
     
    629629                this.log( Level.FINE, getMessage( "findModletsReport",
    630630                                                  provided != null ? provided.getModlet().size() : 0,
    631                                                   System.currentTimeMillis() - t0 ), null );
     631                                                  System.nanoTime() - t0 ), null );
    632632
    633633            }
     
    638638            }
    639639
    640             t0 = System.currentTimeMillis();
     640            t0 = System.nanoTime();
    641641            final Modlets processed = this.processModlets( this.modlets );
    642642
     
    645645                this.log( Level.FINE, getMessage( "processModletsReport",
    646646                                                  processed != null ? processed.getModlet().size() : 0,
    647                                                   System.currentTimeMillis() - t0 ), null );
     647                                                  System.nanoTime() - t0 ), null );
    648648            }
    649649
     
    653653            }
    654654
    655             t0 = System.currentTimeMillis();
     655            t0 = System.nanoTime();
    656656            final ModelValidationReport report = this.validateModlets( this.modlets );
    657657
     
    660660                this.log( Level.FINE, getMessage( "validateModletsReport",
    661661                                                  this.modlets.getModlet().size(),
    662                                                   System.currentTimeMillis() - t0 ), null );
     662                                                  System.nanoTime() - t0 ), null );
    663663            }
    664664
     
    746746        }
    747747
    748         final long t0 = System.currentTimeMillis();
     748        final long t0 = System.nanoTime();
    749749        final URL resource = this.getClassLoader() == null
    750750                                 ? ClassLoader.getSystemResource( name )
     
    753753        if ( this.isLoggable( Level.FINE ) )
    754754        {
    755             this.log( Level.FINE, getMessage( "resourcesReport", name, System.currentTimeMillis() - t0 ), null );
     755            this.log( Level.FINE, getMessage( "resourcesReport", name, System.nanoTime() - t0 ), null );
    756756        }
    757757
     
    781781        try
    782782        {
    783             final long t0 = System.currentTimeMillis();
     783            final long t0 = System.nanoTime();
    784784            final Enumeration<URL> resources = this.getClassLoader() == null
    785785                                                   ? ClassLoader.getSystemResources( name )
     
    788788            if ( this.isLoggable( Level.FINE ) )
    789789            {
    790                 this.log( Level.FINE, getMessage( "resourcesReport", name, System.currentTimeMillis() - t0 ), null );
     790                this.log( Level.FINE, getMessage( "resourcesReport", name, System.nanoTime() - t0 ), null );
    791791            }
    792792
  • jomc/trunk/jomc-modlet/src/main/resources/org/jomc/modlet/DefaultModelContext.properties

    r5047 r5084  
    22contextPlatformProviderLocationInfo=Context platform provider location: ''{0}''
    33contextProviderLocationInfo=Context provider location: ''{0}''
    4 contextReport=Processing {0,choice,0#no "{1}" resources|1#one "{1}" resource|1<{0,number} "{1}" resources} in {2,number}ms.
    5 creatingContext=Creating JAXB context [''{0}''] in {1,number}ms.
    6 creatingMarshaller=Creating JAXB marshaller [''{0}'', ''{1}''] in {2,number}ms.
    7 creatingMarshallerWithListeners=Creating JAXB marshaller [''{0}'', ''{1}''] with listeners [{2}] in {3,number}ms.
     4contextReport=Processing {0,choice,0#no "{1}" resources|1#one "{1}" resource|1<{0,number} "{1}" resources} in {2,number}ns.
     5creatingContext=Creating JAXB context [''{0}''] in {1,number}ns.
     6creatingMarshaller=Creating JAXB marshaller [''{0}'', ''{1}''] in {2,number}ns.
     7creatingMarshallerWithListeners=Creating JAXB marshaller [''{0}'', ''{1}''] with listeners [{2}] in {3,number}ns.
    88creatingModel=Creating model ''{0}'' with ''{1}''.
    99creatingModlets=Creating modlets with ''{0}''.
    10 creatingSchema=Creating schema [''{0}''] in {1,number}ms.
     10creatingSchema=Creating schema [''{0}''] in {1,number}ns.
    1111creatingService=Creating service ''{0,number}/{1}/{2}'' with ''{3}''.
    12 creatingUnmarshaller=Creating JAXB unmarshaller [''{0}''] in {1,number}ms.
    13 creatingUnmarshallerWithListeners=Creating JAXB unmarshaller [''{0}''] with listeners [{1}] in {2,number}ms.
     12creatingUnmarshaller=Creating JAXB unmarshaller [''{0}''] in {1,number}ns.
     13creatingUnmarshallerWithListeners=Creating JAXB unmarshaller [''{0}''] with listeners [{1}] in {2,number}ns.
    1414defaultPlatformProviderLocationInfo=Default platform provider location: ''{0}''
    1515defaultProviderLocationInfo=Default provider location: ''{0}''
    1616failedResolving=Failed resolving schema [''{0}''].{1}
    17 findModelReport=Finding ''{0}'' model in {1,number}ms.
     17findModelReport=Finding ''{0}'' model in {1,number}ns.
    1818foundSchemaCandidate=Found schema resource ''{0}''.
    1919missingSchemasForModel=No schemas found for model ''{0}''.
     
    2525noVendor=No vendor information
    2626noVersion=No version
    27 processModelReport=Processing ''{0}'' model in {1,number}ms.
     27processModelReport=Processing ''{0}'' model in {1,number}ns.
    2828processing=Processing ''{0}''.
    2929processingModel=Processing model ''{0}'' with ''{1}''.
     
    3737unsupportedOperation=Call to unsupported operation ''{0}'' of class ''{1}'' ignored.
    3838unsupportedResourceType=Unsupported resource type ''{0}''.
    39 validateModelReport=Validating ''{0}'' model in {1,number}ms.
     39validateModelReport=Validating ''{0}'' model in {1,number}ns.
    4040validatingModel=Validating model ''{0}'' with ''{1}''.
    4141validatingModlets=Validating modlets with ''{0}''.
  • jomc/trunk/jomc-modlet/src/main/resources/org/jomc/modlet/DefaultModelContext_de.properties

    r5047 r5084  
    22contextPlatformProviderLocationInfo=Kontext Plattform-Provider-Ort: ''{0}''
    33contextProviderLocationInfo=Kontext Provider-Ort: ''{0}''
    4 contextReport=Verarbeitung von {0,choice,0#keinen "{1}" Ressourcen|1#einer "{1}" Ressource|1<{0,number} "{1}" Ressourcen} in {2,number}ms.
    5 creatingContext=JAXB Kontext [''{0}''] in {1,number}ms erstellt.
    6 creatingMarshaller=JAXB Marshaller [''{0}'', ''{1}''] in {2,number}ms erstellt.
    7 creatingMarshallerWithListeners=JAXB Marshaller [''{0}'', ''{1}''] mit R\u00fcckrufobjekten [{2}] in {3,number}ms erstellt.
     4contextReport=Verarbeitung von {0,choice,0#keinen "{1}" Ressourcen|1#einer "{1}" Ressource|1<{0,number} "{1}" Ressourcen} in {2,number}ns.
     5creatingContext=JAXB Kontext [''{0}''] in {1,number}ns erstellt.
     6creatingMarshaller=JAXB Marshaller [''{0}'', ''{1}''] in {2,number}ns erstellt.
     7creatingMarshallerWithListeners=JAXB Marshaller [''{0}'', ''{1}''] mit R\u00fcckrufobjekten [{2}] in {3,number}ns erstellt.
    88creatingModel=Erstellt Modell ''{0}'' mit ''{1}''.
    99creatingModlets=Erstellt Modlets mit ''{0}''.
    10 creatingSchema=Schema [''{0}''] in {1,number}ms erstellt.
     10creatingSchema=Schema [''{0}''] in {1,number}ns erstellt.
    1111creatingService=Erstellt Service ''{0,number}/{1}/{2}'' mit ''{3}''.
    12 creatingUnmarshaller=JAXB Unmarshaller [''{0}''] in {1,number}ms erstellt.
    13 creatingUnmarshallerWithListeners=JAXB Unmarshaller [''{0}''] mit R\u00fcckrufobjekten [{1}] in {2,number}ms erstellt.
     12creatingUnmarshaller=JAXB Unmarshaller [''{0}''] in {1,number}ns erstellt.
     13creatingUnmarshallerWithListeners=JAXB Unmarshaller [''{0}''] mit R\u00fcckrufobjekten [{1}] in {2,number}ns erstellt.
    1414defaultPlatformProviderLocationInfo=Standard Plattform-Provider-Ort: ''{0}''
    1515defaultProviderLocationInfo=Standard Provider-Ort: ''{0}''
    1616failedResolving=Schema-Aufl\u00f6sung [''{0}''] gescheitert.{1}
    17 findModelReport=Modell ''{0}'' in {1,number}ms gefunden.
     17findModelReport=Modell ''{0}'' in {1,number}ns gefunden.
    1818foundSchemaCandidate=Schema-Ressource ''{0}'' gefunden.
    1919missingSchemasForModel=Keine Schema-Beschreibungen f\u00fcr Modell ''{0}'' gefunden.
     
    2525noVendor=Keine Herstellerinformationen
    2626noVersion=Keine Version
    27 processModelReport=Modell ''{0}'' in {1,number}ms verarbeitet.
     27processModelReport=Modell ''{0}'' in {1,number}ns verarbeitet.
    2828processing=Verarbeitet ''{0}''.
    2929processingModel=Verarbeitet Modell ''{0}'' mit ''{1}''.
     
    3737unsupportedOperation=Aufruf nicht unterst\u00fctzter Operation ''{0}'' von Klasse ''{1}'' ignoriert.
    3838unsupportedResourceType=Keine Unterst\u00fctzung f\u00fcr Ressourcen des Typs ''{0}''.
    39 validateModelReport=Modell ''{0}'' in {1,number}ms gepr\u00fcft.
     39validateModelReport=Modell ''{0}'' in {1,number}ns gepr\u00fcft.
    4040validatingModel=Pr\u00fcft Modell ''{0}'' mit ''{1}''.
    4141validatingModlets=Pr\u00fcft Modlets mit ''{0}''.
  • jomc/trunk/jomc-modlet/src/main/resources/org/jomc/modlet/DefaultModelContext_en.properties

    r5047 r5084  
    22contextPlatformProviderLocationInfo=Context platform provider location: ''{0}''
    33contextProviderLocationInfo=Context provider location: ''{0}''
    4 contextReport=Processing {0,choice,0#no "{1}" resources|1#one "{1}" resource|1<{0,number} "{1}" resources} in {2,number}ms.
    5 creatingContext=Creating JAXB context [''{0}''] in {1,number}ms.
    6 creatingMarshaller=Creating JAXB marshaller [''{0}'', ''{1}''] in {2,number}ms.
    7 creatingMarshallerWithListeners=Creating JAXB marshaller [''{0}'', ''{1}''] with listeners [{2}] in {3,number}ms.
     4contextReport=Processing {0,choice,0#no "{1}" resources|1#one "{1}" resource|1<{0,number} "{1}" resources} in {2,number}ns.
     5creatingContext=Creating JAXB context [''{0}''] in {1,number}ns.
     6creatingMarshaller=Creating JAXB marshaller [''{0}'', ''{1}''] in {2,number}ns.
     7creatingMarshallerWithListeners=Creating JAXB marshaller [''{0}'', ''{1}''] with listeners [{2}] in {3,number}ns.
    88creatingModel=Creating model ''{0}'' with ''{1}''.
    99creatingModlets=Creating modlets with ''{0}''.
    10 creatingSchema=Creating schema [''{0}''] in {1,number}ms.
     10creatingSchema=Creating schema [''{0}''] in {1,number}ns.
    1111creatingService=Creating service ''{0,number}/{1}/{2}'' with ''{3}''.
    12 creatingUnmarshaller=Creating JAXB unmarshaller [''{0}''] in {1,number}ms.
    13 creatingUnmarshallerWithListeners=Creating JAXB unmarshaller [''{0}''] with listeners [{1}] in {2,number}ms.
     12creatingUnmarshaller=Creating JAXB unmarshaller [''{0}''] in {1,number}ns.
     13creatingUnmarshallerWithListeners=Creating JAXB unmarshaller [''{0}''] with listeners [{1}] in {2,number}ns.
    1414defaultPlatformProviderLocationInfo=Default platform provider location: ''{0}''
    1515defaultProviderLocationInfo=Default provider location: ''{0}''
    1616failedResolving=Failed resolving schema [''{0}''].{1}
    17 findModelReport=Finding ''{0}'' model in {1,number}ms.
     17findModelReport=Finding ''{0}'' model in {1,number}ns.
    1818foundSchemaCandidate=Found schema resource ''{0}''.
    1919missingSchemasForModel=No schemas found for model ''{0}''.
     
    2525noVendor=No vendor information
    2626noVersion=No version
    27 processModelReport=Processing ''{0}'' model in {1,number}ms.
     27processModelReport=Processing ''{0}'' model in {1,number}ns.
    2828processing=Processing ''{0}''.
    2929processingModel=Processing model ''{0}'' with ''{1}''.
     
    3737unsupportedOperation=Call to unsupported operation ''{0}'' of class ''{1}'' ignored.
    3838unsupportedResourceType=Unsupported resource type ''{0}''.
    39 validateModelReport=Validating ''{0}'' model in {1,number}ms.
     39validateModelReport=Validating ''{0}'' model in {1,number}ns.
    4040validatingModel=Validating model ''{0}'' with ''{1}''.
    4141validatingModlets=Validating modlets with ''{0}''.
  • jomc/trunk/jomc-modlet/src/main/resources/org/jomc/modlet/DefaultModletProcessor.properties

    r4930 r5084  
    11# $JOMC$
    2 contextReport=Processing {0,choice,0#no "{1}" resources|1#one "{1}" resource|1<{0,number} "{1}" resources} in {2,number}ms.
     2contextReport=Processing {0,choice,0#no "{1}" resources|1#one "{1}" resource|1<{0,number} "{1}" resources} in {2,number}ns.
    33disabled={0} - Not processing modlets. Disabled.
    44illegalTransformationResult=Failure processing modlets. Illegal transformation result.
  • jomc/trunk/jomc-modlet/src/main/resources/org/jomc/modlet/DefaultModletProcessor_de.properties

    r4930 r5084  
    11# $JOMC$
    2 contextReport=Verarbeitung von {0,choice,0#keinen "{1}" Ressourcen|1#einer "{1}" Ressource|1<{0,number} "{1}" Ressourcen} in {2,number}ms.
     2contextReport=Verarbeitung von {0,choice,0#keinen "{1}" Ressourcen|1#einer "{1}" Ressource|1<{0,number} "{1}" Ressourcen} in {2,number}ns.
    33disabled={0} - Keine Verarbeitung von Modlets. Deaktiviert.
    44illegalTransformationResult=Fehler bei der Modlet-Verarbeitung. Ung\u00fcltiges Transformations-Ergebniss.
  • jomc/trunk/jomc-modlet/src/main/resources/org/jomc/modlet/DefaultModletProcessor_en.properties

    r4930 r5084  
    11# $JOMC$
    2 contextReport=Processing {0,choice,0#no "{1}" resources|1#one "{1}" resource|1<{0,number} "{1}" resources} in {2,number}ms.
     2contextReport=Processing {0,choice,0#no "{1}" resources|1#one "{1}" resource|1<{0,number} "{1}" resources} in {2,number}ns.
    33disabled={0} - Not processing modlets. Disabled.
    44illegalTransformationResult=Failure processing modlets. Illegal transformation result.
  • jomc/trunk/jomc-modlet/src/main/resources/org/jomc/modlet/DefaultModletProvider.properties

    r4930 r5084  
    11# $JOMC$
    2 contextReport=Processing {0,choice,0#no "{1}" resources|1#one "{1}" resource|1<{0,number} "{1}" resources} in {2,number}ms.
     2contextReport=Processing {0,choice,0#no "{1}" resources|1#one "{1}" resource|1<{0,number} "{1}" resources} in {2,number}ns.
    33disabled={0} - Not providing modlets. Disabled.
    44unmarshalException=Failure processing ''{0}''.{1}
  • jomc/trunk/jomc-modlet/src/main/resources/org/jomc/modlet/DefaultModletProvider_de.properties

    r4930 r5084  
    11# $JOMC$
    2 contextReport=Verarbeitung von {0,choice,0#keinen "{1}" Ressourcen|1#einer "{1}" Ressource|1<{0,number} "{1}" Ressourcen} in {2,number}ms.
     2contextReport=Verarbeitung von {0,choice,0#keinen "{1}" Ressourcen|1#einer "{1}" Ressource|1<{0,number} "{1}" Ressourcen} in {2,number}ns.
    33disabled={0} - Keine Erstellung von Modlets. Deaktiviert.
    44unmarshalException=Fehler bei der Verarbeitung der Ressource ''{0}''.{1}
  • jomc/trunk/jomc-modlet/src/main/resources/org/jomc/modlet/DefaultModletProvider_en.properties

    r4930 r5084  
    11# $JOMC$
    2 contextReport=Processing {0,choice,0#no "{1}" resources|1#one "{1}" resource|1<{0,number} "{1}" resources} in {2,number}ms.
     2contextReport=Processing {0,choice,0#no "{1}" resources|1#one "{1}" resource|1<{0,number} "{1}" resources} in {2,number}ns.
    33disabled={0} - Not providing modlets. Disabled.
    44unmarshalException=Failure processing ''{0}''.{1}
  • jomc/trunk/jomc-modlet/src/main/resources/org/jomc/modlet/ModelContext.properties

    r5026 r5084  
    22defaultLogLevelInfo=Default log level: ''{0}''
    33defaultModletSchemaSystemIdInfo=Default modlet schema system id: ''{0}''
    4 findModletsReport=Finding {0,choice,0#no modlets|1#one modlet|1<{0,number} modlets} in {1,number}ms.
     4findModletsReport=Finding {0,choice,0#no modlets|1#one modlet|1<{0,number} modlets} in {1,number}ns.
    55invalidModlets=Invalid modlets.
    6 processModletsReport=Processing {0,choice,0#no modlets|1#one modlet|1<{0,number} modlets} in {1,number}ms.
     6processModletsReport=Processing {0,choice,0#no modlets|1#one modlet|1<{0,number} modlets} in {1,number}ns.
    77projectName=JOMC \u2051 Modlet
    88projectVendor=${project.organization.name}
    99projectVersion=${project.version}
    10 resourcesReport=Finding ''{0}'' resources in {1,number}ms.
    11 validateModletsReport=Validating {0,choice,0#no modlets|1#one modlet|1<{0,number} modlets} in {1,number}ms.
     10resourcesReport=Finding ''{0}'' resources in {1,number}ns.
     11validateModletsReport=Validating {0,choice,0#no modlets|1#one modlet|1<{0,number} modlets} in {1,number}ns.
  • jomc/trunk/jomc-modlet/src/main/resources/org/jomc/modlet/ModelContext_de.properties

    r5026 r5084  
    22defaultLogLevelInfo=Standard-Protokollierungsstufe: ''{0}''
    33defaultModletSchemaSystemIdInfo=Standard Modlet-Schema System-Id: ''{0}''
    4 findModletsReport=Suche von {0,choice,0#keinen Modlets|1#einem Modlet|1<{0,number} Modlets} in {1,number}ms.
     4findModletsReport=Suche von {0,choice,0#keinen Modlets|1#einem Modlet|1<{0,number} Modlets} in {1,number}ns.
    55invalidModlets=Ung\u00fcltige Modlets.
    6 processModletsReport=Verarbeitung von {0,choice,0#keinen Modlets|1#einem Modlet|1<{0,number} Modlets} in {1,number}ms.
     6processModletsReport=Verarbeitung von {0,choice,0#keinen Modlets|1#einem Modlet|1<{0,number} Modlets} in {1,number}ns.
    77projectName=JOMC \u2051 Modlet
    88projectVendor=${project.organization.name}
    99projectVersion=${project.version}
    10 resourcesReport=Suche von ''{0}'' Ressourcen in {1,number}ms.
    11 validateModletsReport=Pr\u00fcfung von {0,choice,0#keinen Modlets|1#einem Modlet|1<{0,number} Modlets} in {1,number}ms.
     10resourcesReport=Suche von ''{0}'' Ressourcen in {1,number}ns.
     11validateModletsReport=Pr\u00fcfung von {0,choice,0#keinen Modlets|1#einem Modlet|1<{0,number} Modlets} in {1,number}ns.
  • jomc/trunk/jomc-modlet/src/main/resources/org/jomc/modlet/ModelContext_en.properties

    r5026 r5084  
    22defaultLogLevelInfo=Default log level: ''{0}''
    33defaultModletSchemaSystemIdInfo=Default modlet schema system id: ''{0}''
    4 findModletsReport=Finding {0,choice,0#no modlets|1#one modlet|1<{0,number} modlets} in {1,number}ms.
     4findModletsReport=Finding {0,choice,0#no modlets|1#one modlet|1<{0,number} modlets} in {1,number}ns.
    55invalidModlets=Invalid modlets.
    6 processModletsReport=Processing {0,choice,0#no modlets|1#one modlet|1<{0,number} modlets} in {1,number}ms.
     6processModletsReport=Processing {0,choice,0#no modlets|1#one modlet|1<{0,number} modlets} in {1,number}ns.
    77projectName=JOMC \u2051 Modlet
    88projectVendor=${project.organization.name}
    99projectVersion=${project.version}
    10 resourcesReport=Finding ''{0}'' resources in {1,number}ms.
    11 validateModletsReport=Validating {0,choice,0#no modlets|1#one modlet|1<{0,number} modlets} in {1,number}ms.
     10resourcesReport=Finding ''{0}'' resources in {1,number}ns.
     11validateModletsReport=Validating {0,choice,0#no modlets|1#one modlet|1<{0,number} modlets} in {1,number}ns.
  • jomc/trunk/jomc-ri/src/main/java/org/jomc/ri/DefaultObjectManager.java

    r5038 r5084  
    19741974                    }
    19751975
    1976                     final long t0 = System.currentTimeMillis();
     1976                    final long t0 = System.nanoTime();
    19771977                    cachedModules = this.getRuntimeModules( cachedModules, objectMap );
    19781978
     
    19841984                    logRecords.add( new LogRecord( Level.FINE,
    19851985                                                   getRuntimeModelReport( Locale.getDefault(),
    1986                                                                           System.currentTimeMillis() - t0 ) ) );
     1986                                                                          System.nanoTime() - t0 ) ) );
    19871987
    19881988                }
     
    30113011                try
    30123012                {
    3013                     final long t0 = System.currentTimeMillis();
     3013                    final long t0 = System.nanoTime();
    30143014                    this.initialized = true;
    30153015
     
    30793079                    if ( this.isLoggable( Level.FINE ) )
    30803080                    {
    3081                         this.log( Level.FINE, getImplementationInfoMessage(
    3082                                   Locale.getDefault(), Long.valueOf( System.currentTimeMillis() - t0 ) ), null );
     3081                        this.log( Level.FINE, getImplementationInfoMessage( Locale.getDefault(),
     3082                                                                            System.nanoTime() - t0 ), null );
    30833083
    30843084                    }
  • jomc/trunk/jomc-ri/src/main/resources/META-INF/jomc.xml

    r5038 r5084  
    160160        <message name="Implementation Info Message">
    161161          <template defaultLanguage="en">
    162             <text language="en">DefaultObjectManager ${project.version} (${build.date}) initialized in {0,number}ms.</text>
    163             <text language="de">DefaultObjectManager ${project.version} (${build.date}) in {0,number}ms initialisiert.</text>
     162            <text language="en">DefaultObjectManager ${project.version} (${build.date}) initialized in {0,number}ns.</text>
     163            <text language="de">DefaultObjectManager ${project.version} (${build.date}) in {0,number}ns initialisiert.</text>
    164164          </template>
    165165          <arguments>
     
    431431        <message name="Runtime Model Report">
    432432          <template defaultLanguage="en">
    433             <text language="en">Creating runtime model in {0,number}ms.</text>
    434             <text language="de">Laufzeitmodell in {0,number}ms erstellt.</text>
     433            <text language="en">Creating runtime model in {0,number}ns.</text>
     434            <text language="de">Laufzeitmodell in {0,number}ns erstellt.</text>
    435435          </template>
    436436          <arguments>
  • jomc/trunk/jomc-ri/src/test/java/org/jomc/ri/test/ImplementationTest.java

    r5038 r5084  
    258258        for ( int i = NUM_RUNS - 1; i >= 0; i-- )
    259259        {
    260             final long t0 = System.currentTimeMillis();
     260            final long t0 = System.nanoTime();
    261261
    262262            for ( long l = NUM_REQUESTS - 1; l >= 0; l-- )
     
    265265            }
    266266
    267             t += ( System.currentTimeMillis() - t0 );
     267            t += ( System.nanoTime() - t0 );
    268268        }
    269269
    270         System.out.println( NUM_REQUESTS + " * '" + identifier + "': ~" + ( t / NUM_RUNS ) + "ms." );
     270        System.out.println( NUM_REQUESTS + " * '" + identifier + "': ~" + ( t / NUM_RUNS ) + "ns." );
    271271    }
    272272
Note: See TracChangeset for help on using the changeset viewer.