Hi Yuriy,
Indeed, times are a bit tricky to use because they do not respect the protocol set by Magnitude (e.g., "5 < Date today” raise an exception). This is quite an unfortunate situation. It would be great if someone could tackle this.
As you said, what can be easily done is converting the date into a number, #asSecond seems to do a pretty good job. I have just tried this:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= methods := RTShape withAllSubclasses flatCollect: #methods.
v := RTView new.
es := RTEllipse elementsOn: methods. v addAll: es.
RTMetricNormalizer new elements: es; alphaColor: 0.3; normalizeSize: #numberOfLinesOfCode min: 5 max: 30 using: #sqrt; normalizeX: [ :aMethod | aMethod date asSeconds ] min: 0 max: 300. v -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
CompiledMethod>>date returns the time stamp of a method.
Regarding your problem, I am not sure what the exact problem is. Do you use RTMetricNormalizer? Have you tried to remove the minimum number of seconds your data set has?
Cheers, Alexandre