¦p¦ó ´ú¸Õ Excel VBA pºâ®É¶¡¶¡¹jªº ºë½T«×¡H
- ©«¤l
- 145
- ¥DÃD
- 45
- ºëµØ
- 0
- ¿n¤À
- 190
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_¥«
- µù¥U®É¶¡
- 2013-10-18
- ³Ì«áµn¿ý
- 2014-3-29
|
¦p¦ó ´ú¸Õ Excel VBA pºâ®É¶¡¶¡¹jªº ºë½T«×¡H
¥ý¥á¥X ¤@Ó°ÝÃD¡A¦AºCºC ¸Ñµª
§Æ±æ¤j®a¦³¿³½ì |
|
¤Ñ¤U¬°¤½
|
|
|
|
|
- ©«¤l
- 145
- ¥DÃD
- 45
- ºëµØ
- 0
- ¿n¤À
- 190
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_¥«
- µù¥U®É¶¡
- 2013-10-18
- ³Ì«áµn¿ý
- 2014-3-29
|
¦^´_ 3# stillfish00
Timer ¨ç¼Æ
½Ð°Ñ¾\ ½d¨Ò ¯S©Ê
¶Ç¦^¤@ Single¡A¨ä¤º®e¬°±q«e¤@Ӥȩ]ºâ°_¨ì²{¦b©Ò¸g¹Lªº¬í¼Æ¡C
»yªk
Timer
½Ðª`·N
¦b Microsoft Windows¤¤¡A Timer¨ç¼Æ¶Ç¦^¤@¬íªº¤p¼Æ³¡¤À¡C |
|
¤Ñ¤U¬°¤½
|
|
|
|
|
- ©«¤l
- 145
- ¥DÃD
- 45
- ºëµØ
- 0
- ¿n¤À
- 190
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_¥«
- µù¥U®É¶¡
- 2013-10-18
- ³Ì«áµn¿ý
- 2014-3-29
|
¦^´_ 3# stillfish00
¦P·N ±zªº¬Ýªk¡A
SINGLE ªº ºë½T«×¡A¥u¦³ 6 - 7¦ì¼Æ¡A
©Ò¥H¡A¥H¤Wªº´ú¸Õ ½T¹ê¤£¤Ó ¬ì¾Ç |
|
¤Ñ¤U¬°¤½
|
|
|
|
|
- ©«¤l
- 1018
- ¥DÃD
- 15
- ºëµØ
- 0
- ¿n¤À
- 1058
- ÂI¦W
- 0
- §@·~¨t²Î
- win7 32bit
- ³nÅ骩¥»
- Office 2016 64-bit
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ®ç¶é
- µù¥U®É¶¡
- 2012-5-9
- ³Ì«áµn¿ý
- 2022-9-28
|
¦^´_ 2# sjgau
§Úı±o³o¼Ë¦³°ÝÃD¡ATimer¶Ç¦^ªº¼Æ¬°Single¡A
¦b§Úªº¹q¸£¤W¡ATimer¶Ç¦^ªº¼Æ¥u·|¨ì¤p¼ÆÂI«á²Ä¤G¦ì¡A
³oӼƬO¤w¸g¶i¦ì¹Lªº¡A¦Ó¤£¸Ó¦A¥Î timer1( ) °µ¥|±Ë¤¤J¡A
§A¥i¯à·|»¡¡ATimer¶Ç¦^ªº¼Æ¦pªG¥u¨ì¤p¼ÆÂI«á²Ä¤G¦ì¡Atimer1( )¸Ìªº a ¤p¼ÆÂI«á´NÀ³¸Ó³£¬O¹s¡A¥i¬O¤£¬O³o¼Ë¡C
³o¬O¦]¬°§Aªº a ¬O Double ¸ê®Æ«¬ºA¡A¸ê®Æ«¬ºA¤§¶¡Âà´«³y¦¨ªº»~®t¡A¥i run ©³¤Uµ{¦¡½Xª¾¹D¦³¦¹»~®t¡G- Sub Test()
- Dim t1 As Single
- Dim d1 As Double
-
- t1 = Timer
- Debug.Print "t1=", t1
- Debug.Print "Cdbl(t1)=", CDbl(t1)
- d1 = t1
- Debug.Print "d1=", d1
- End Sub
½Æ»s¥N½X |
|
|
|
|
|
|
- ©«¤l
- 145
- ¥DÃD
- 45
- ºëµØ
- 0
- ¿n¤À
- 190
- ÂI¦W
- 0
- §@·~¨t²Î
- windows
- ³nÅ骩¥»
- 7
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_¥«
- µù¥U®É¶¡
- 2013-10-18
- ³Ì«áµn¿ý
- 2014-3-29
|
- Sub main()
- Dim no, i, t1, t2 As Long
- Dim sum, dt As Double
-
- no = 100000000
- ct = 0
-
- While (no > 1)
- ct = ct + 1
-
- t1 = time1()
- sum = 0#
- For i = 1 To no
- sum = sum + i
- Next i
- dt = time2(t1)
-
- Cells(ct, 1) = no
- Cells(ct, 2) = dt
-
- no = no / 3
- Wend
- End Sub
- Function time1() As Long
- Dim a As Double
- a = Timer * 1000
- time1 = Int(a + 0.5)
- End Function
- Function time2(ByVal t1 As Long) As Double
- Dim t2 As Long
- Dim dt As Double
- t2 = time1()
- dt = (t2 - t1) / 1000#
-
- ' dt must >- 0.0
- If (dt < 0#) Then
- dt = dt + 86400#
- End If
-
- time2 = dt
- End Function
½Æ»s¥N½X ¦^´_ 1# sjgau |
|
¤Ñ¤U¬°¤½
|
|
|
|
|