Develop and Download Open Source Software

Browse Subversion Repository

Annotation of /branches/ttcomtester/tests/#35822-random.ttl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6636 - (hide annotations) (download)
Thu Mar 16 03:31:55 2017 UTC (7 years ago) by doda
Original Path: trunk/tests/#35822-random.ttl
File size: 598 byte(s)
使用時に判りづらかった部分等を修正

・ファイル名の生成を簡略化
・処理状況を表示するようにした
  起動後しばらく反応が無かったので一瞬ハングアップを疑った為
・処理にかかった時間を表示するようにした
  デバッグビルドとリリースビルドで2倍以上の速度差が出るため、
  最初デバッグビルドで試した時に遅くなるようなミスをしたかと疑った為
1 maya 6353 intdim res 11
2    
3 doda 6636 statusbox "0% done." "stat"
4    
5     uptime stime
6    
7     for i 1 100
8     for j 1 110000
9     random val 10
10     res[val] = res[val] + 1
11     next
12     sprintf2 stat "%d%% done." i
13     statusbox stat "stat"
14 maya 6353 next
15    
16 doda 6636 uptime etime
17    
18 maya 6353 str = ''
19     for i 0 10
20     sprintf2 tmp '%d\t%d' i res[i]
21     strconcat str tmp
22 doda 6634 strconcat str #13#10
23 maya 6353 next
24 doda 6636
25     sprintf2 tmp #13#10"%d ms."#13#10 etime - stime
26     strconcat str tmp
27    
28 maya 6353 strspecial str
29 doda 6636 ;closesbox
30 maya 6353 messagebox str 'result'
31    
32 doda 6636 ; gettime filename "35822_%Y%m%d%H%M%S.txt"
33     sprintf2 filename "35822_%d.txt" stime
34 maya 6353
35     fileopen fp filename 0
36     filewrite fp str
37     fileclose fp

Properties

Name Value
svn:executable *

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26