/[eiffelstudio]/trunk/eweasel/tests/time006/calc.e
ViewVC logotype

Contents of /trunk/eweasel/tests/time006/calc.e

Parent Directory Parent Directory | Revision Log Revision Log


Revision 94507 - (show annotations)
Mon Feb 24 20:48:28 2014 UTC (5 years, 7 months ago) by manus
File size: 412 byte(s)
Added time006 to show a failure with `relative_duration' but it is passing (see bug#18816).
Added time007 showing that calling C_DATE.make_utc and C_DATE.default_create in 2 different threads causes some issues since we are using non-thread safe underlying APIs.

1 class
2 CALC
3
4 inherit
5 THREAD
6 rename
7 make as thr_make
8 end
9
10 create
11 make
12
13 feature {NONE} -- Initialization
14
15 make
16 do
17 thr_make
18 launch
19 end
20
21 execute
22 local
23 dt1, dt2: DATE_TIME
24 i, j: INTEGER_64
25 do
26 create dt1.make_now_utc
27 create dt2.make_now_utc
28
29 from
30 i := 1
31 until
32 i > 100_000_000
33 loop
34 j := dt2.relative_duration (dt1).seconds_count
35 i := i + 1
36 end
37 end
38 end

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.23