[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [mylyn-builds-dev] Question about IBuild's timestamp and duration
|
Hi,
the timestamp specifies the posix time when the build was started in milliseconds. The duration field specifies the duration of a build in milliseconds (not absolute time).
It sounds like converting the double values to long values is the right thing to do.
Steffen
On Wed, Aug 17, 2011 at 9:29 PM, Kiu Leung
<kleung@xxxxxxxxxx> wrote:
Hi all,
I have a question about Mylyn's Build/IBuild's timestamp and duration field.
I have the build's start and end time in double values, which are POSIX timestamps
(actual long value can be converted by (long)(value of timestamp * 1000).
So in the Build's timestamp field, am I supposed to fill the actual long value of
the start time? Or the end time? Or I am only supposed to put the casted long value
of the POSIX timestamp (start or end)? (this will cause a big lose of precision)
I also have the same problem with the duration field, should I first convert the
timestamps to their actual long value first, subtract them and fill in? Or subtract
the timestamps and leave them as POSIX format?
I should be grateful for your kind advice, thank you very much!
Ken Leung
_______________________________________________
mylyn-builds-dev mailing list
mylyn-builds-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/mylyn-builds-dev
--
Steffen Pingel
Committer,
http://eclipse.org/mylynSenior Developer,
http://tasktop.com