blob: 4e26f3726d086484571e5a21678f5e98e492a82d [file] [log] [blame]
import emf.tools;
modeltype Ecore "strict" uses 'http://www.eclipse.org/emf/2002/Ecore';
transformation test(out model : Ecore);
property sharedInstance : EClass = object EClass {};
main() {
--var start := this.currentTimeMillis();
--var s := this.currentTimeMillis();
var i:= 0;
while(i<20000) {
i := i + 1;
i.map ToClass();
/*if i.mod(2000)=0 then {
log('Last 2000 took ' + (this.currentTimeMillis()-s).toString() + ' ms');
s := this.currentTimeMillis();
} endif;
*/
};
//log('Total: ' + (this.currentTimeMillis()-start).toString() + ' ms');
}
mapping Integer::ToClass() : EClass
{
init {
result := sharedInstance;
}
name := 'c' + self.toString();
}