home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmDiags
- BorderStyle = 1 'Fixed Single
- Caption = "Speed Test 3.0"
- ClientHeight = 6165
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 9525
- Icon = "frmDiags.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 411
- ScaleMode = 3 'Pixel
- ScaleWidth = 635
- StartUpPosition = 2 'CenterScreen
- Begin VB.CommandButton cmdQuit
- Caption = "QUIT"
- Height = 330
- Left = 8460
- TabIndex = 53
- Top = 5760
- Width = 915
- End
- Begin VB.PictureBox Picture2
- Height = 3045
- Left = 90
- ScaleHeight = 199
- ScaleMode = 3 'Pixel
- ScaleWidth = 619
- TabIndex = 20
- Top = 2610
- Width = 9345
- Begin VB.Label lblValue
- BackStyle = 0 'Transparent
- Caption = "..."
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Index = 18
- Left = 2025
- TabIndex = 52
- ToolTipText = "Hardware high-frequency counter (based on resolution/second)"
- Top = 45
- Width = 1470
- End
- Begin VB.Label lblLabel
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Tick count:"
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 165
- Index = 7
- Left = 135
- TabIndex = 51
- Top = 45
- Width = 690
- End
- Begin VB.Label lblValue
- BackStyle = 0 'Transparent
- Caption = "..."
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Index = 16
- Left = 2025
- TabIndex = 40
- ToolTipText = "Value (low/high)"
- Top = 1710
- Width = 1650
- End
- Begin VB.Label lblLabel
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Floating-point division:"
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 165
- Index = 12
- Left = 135
- TabIndex = 39
- Top = 1710
- Width = 1410
- End
- Begin VB.Label lblLabel
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Floating-point multiplication:"
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 165
- Index = 11
- Left = 135
- TabIndex = 38
- Top = 1530
- Width = 1755
- End
- Begin VB.Label lblValue
- BackStyle = 0 'Transparent
- Caption = "..."
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Index = 11
- Left = 2025
- TabIndex = 37
- ToolTipText = "Value (low/high)"
- Top = 1530
- Width = 1650
- End
- Begin VB.Label lblLabel
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Overall calculation speed:"
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 165
- Index = 10
- Left = 135
- TabIndex = 36
- Top = 2340
- Width = 1575
- End
- Begin VB.Label lblValue
- BackStyle = 0 'Transparent
- Caption = "..."
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Index = 10
- Left = 2025
- TabIndex = 35
- ToolTipText = "Average (operations per second)"
- Top = 2340
- Width = 1650
- End
- Begin VB.Label lblValue
- BackStyle = 0 'Transparent
- Caption = "..."
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Index = 9
- Left = 2025
- TabIndex = 34
- ToolTipText = "Average (operations per second)"
- Top = 1890
- Width = 1650
- End
- Begin VB.Label lblLabel
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Floating-point average:"
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 165
- Index = 9
- Left = 135
- TabIndex = 33
- Top = 1890
- Width = 1425
- End
- Begin VB.Label lblValue
- BackStyle = 0 'Transparent
- Caption = "..."
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Index = 8
- Left = 2025
- TabIndex = 32
- ToolTipText = "Value (low/high)"
- Top = 1350
- Width = 1650
- End
- Begin VB.Label lblLabel
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Floating-point addition:"
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 165
- Index = 8
- Left = 135
- TabIndex = 31
- Top = 1350
- Width = 1425
- End
- Begin VB.Label lblLabel
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Integer division:"
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 165
- Index = 5
- Left = 135
- TabIndex = 28
- Top = 855
- Width = 960
- End
- Begin VB.Label lblValue
- BackStyle = 0 'Transparent
- Caption = "..."
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Index = 5
- Left = 2025
- TabIndex = 27
- ToolTipText = "Value (low/high)"
- Top = 855
- Width = 1650
- End
- Begin VB.Label lblLabel
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Integer average:"
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 165
- Index = 4
- Left = 135
- TabIndex = 26
- Top = 1035
- Width = 975
- End
- Begin VB.Label lblValue
- BackStyle = 0 'Transparent
- Caption = "..."
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Index = 4
- Left = 2025
- TabIndex = 25
- ToolTipText = "Average (operations per second)"
- Top = 1035
- Width = 1650
- End
- Begin VB.Label lblValue
- BackStyle = 0 'Transparent
- Caption = "..."
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Index = 1
- Left = 2025
- TabIndex = 24
- ToolTipText = "Value (low/high)"
- Top = 675
- Width = 1650
- End
- Begin VB.Label lblLabel
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Integer multiplication:"
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 165
- Index = 1
- Left = 135
- TabIndex = 23
- Top = 675
- Width = 1305
- End
- Begin VB.Label lblLabel
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "Integer addition:"
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 165
- Index = 0
- Left = 135
- TabIndex = 22
- Top = 495
- Width = 975
- End
- Begin VB.Label lblValue
- BackStyle = 0 'Transparent
- Caption = "..."
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Index = 0
- Left = 2025
- TabIndex = 21
- ToolTipText = "Value (low/high)"
- Top = 495
- Width = 1650
- End
- End
- Begin VB.PictureBox Picture1
- AutoRedraw = -1 'True
- Height = 2400
- Left = 90
- ScaleHeight = 2340
- ScaleWidth = 9285
- TabIndex = 0
- Top = 90
- Width = 9345
- Begin VB.Label Label13
- BackStyle = 0 'Transparent
- Caption = "Enhanced Virtual 8086:"
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Index = 3
- Left = 5175
- TabIndex = 50
- Top = 1215
- Width = 1815
- End
- Begin VB.Label lblEnhanced
- BackStyle = 0 'Transparent
- Caption = "..."
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Left = 7245
- TabIndex = 49
- Top = 1215
- Width = 1995
- End
- Begin VB.Label lblFPU
- BackStyle = 0 'Transparent
- Caption = "..."
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Left = 7245
- TabIndex = 48
- Top = 1035
- Width = 1995
- End
- Begin VB.Label Label13
- BackStyle = 0 'Transparent
- Caption = "Floating Point Unit:"
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Index = 0
- Left = 5175
- TabIndex = 47
- Top = 1035
- Width = 1815
- End
- Begin VB.Label lblCPUModel
- BackStyle = 0 'Transparent
- Caption = "..."
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Left = 7245
- TabIndex = 46
- Top = 855
- Width = 1995
- End
- Begin VB.Label Label13
- BackStyle = 0 'Transparent
- Caption = "Processor Model / Stepping:"
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Index = 4
- Left = 5175
- TabIndex = 45
- Top = 855
- Width = 1815
- End
- Begin VB.Label lblCPUType
- BackStyle = 0 'Transparent
- Caption = "..."
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Left = 7245
- TabIndex = 44
- Top = 675
- Width = 1995
- End
- Begin VB.Label Label13
- BackStyle = 0 'Transparent
- Caption = "Processor Type:"
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Index = 2
- Left = 5175
- TabIndex = 43
- Top = 675
- Width = 1815
- End
- Begin VB.Label Label12
- BackStyle = 0 'Transparent
- Caption = "Keyboard Type:"
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Left = 135
- TabIndex = 42
- Top = 1755
- Width = 1815
- End
- Begin VB.Label Label1
- BackStyle = 0 'Transparent
- Caption = "..."
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Left = 2250
- TabIndex = 41
- Top = 1755
- Width = 1995
- End
- Begin VB.Label lblLabel
- BackStyle = 0 'Transparent
- Caption = "Estimated Processor Speed:"
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Index = 6
- Left = 5175
- TabIndex = 30
- Top = 1485
- Width = 2085
- End
- Begin VB.Label lblValue
- BackStyle = 0 'Transparent
- Caption = "0"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 285
- Index = 6
- Left = 7245
- TabIndex = 29
- ToolTipText = "Hardware high-frequency counter resolution (per second)"
- Top = 1440
- Width = 1995
- End
- Begin VB.Label lblScreenSize
- BackStyle = 0 'Transparent
- Caption = "..."
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Left = 2250
- TabIndex = 19
- Top = 1575
- Width = 1995
- End
- Begin VB.Label Label11
- BackStyle = 0 'Transparent
- Caption = "Screen Resolution:"
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Left = 135
- TabIndex = 18
- Top = 1575
- Width = 1815
- End
- Begin VB.Label lblComputerName
- BackStyle = 0 'Transparent
- Caption = "..."
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Left = 2250
- TabIndex = 17
- Top = 1935
- Width = 1995
- End
- Begin VB.Label Label3
- BackStyle = 0 'Transparent
- Caption = "Computer Name:"
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Left = 135
- TabIndex = 16
- Top = 1935
- Width = 1815
- End
- Begin VB.Label Label10
- BackStyle = 0 'Transparent
- Caption = "Central Processing Unit:"
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Left = 5175
- TabIndex = 15
- Top = 495
- Width = 1815
- End
- Begin VB.Label lblProcessor
- BackStyle = 0 'Transparent
- Caption = "..."
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Left = 7245
- TabIndex = 14
- Top = 495
- Width = 1995
- End
- Begin VB.Label Label9
- BackStyle = 0 'Transparent
- Caption = "Available Physical Memory:"
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Left = 135
- TabIndex = 13
- Top = 675
- Width = 1995
- End
- Begin VB.Label lblMemAvail
- BackStyle = 0 'Transparent
- Caption = "..."
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Left = 2250
- TabIndex = 12
- Top = 675
- Width = 1995
- End
- Begin VB.Label lblAvailVirtual
- BackStyle = 0 'Transparent
- Caption = "..."
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Left = 2250
- TabIndex = 11
- Top = 1395
- Width = 1995
- End
- Begin VB.Label Label6
- BackStyle = 0 'Transparent
- Caption = "Available Virtual Memory:"
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Left = 135
- TabIndex = 10
- Top = 1395
- Width = 1815
- End
- Begin VB.Label Label100
- BackStyle = 0 'Transparent
- Caption = "Total Virtual Memory:"
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Left = 135
- TabIndex = 9
- Top = 1215
- Width = 1815
- End
- Begin VB.Label lblTotalVirtual
- BackStyle = 0 'Transparent
- Caption = "..."
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Left = 2250
- TabIndex = 8
- Top = 1215
- Width = 1995
- End
- Begin VB.Label lblAvailPage
- BackStyle = 0 'Transparent
- Caption = "..."
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Left = 2250
- TabIndex = 7
- Top = 1035
- Width = 1995
- End
- Begin VB.Label Label4
- BackStyle = 0 'Transparent
- Caption = "Available Page File:"
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Left = 135
- TabIndex = 6
- Top = 1035
- Width = 1995
- End
- Begin VB.Label Label5
- BackStyle = 0 'Transparent
- Caption = "Total Page File:"
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Left = 135
- TabIndex = 5
- Top = 855
- Width = 1995
- End
- Begin VB.Label lblPageFile
- BackStyle = 0 'Transparent
- Caption = "..."
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Left = 2250
- TabIndex = 4
- Top = 855
- Width = 1995
- End
- Begin VB.Label lblPhysMem
- BackStyle = 0 'Transparent
- Caption = "..."
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Left = 2250
- TabIndex = 3
- Top = 495
- Width = 1995
- End
- Begin VB.Label Label2
- BackStyle = 0 'Transparent
- Caption = "Total Physical Memory:"
- BeginProperty Font
- Name = "Small Fonts"
- Size = 6.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00800000&
- Height = 240
- Left = 135
- TabIndex = 2
- Top = 495
- Width = 1815
- End
- Begin VB.Label lblPlatform
- Alignment = 2 'Center
- BackColor = &H00C0C0C0&
- BackStyle = 0 'Transparent
- Caption = "windows"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 14.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FF0000&
- Height = 315
- Left = 45
- TabIndex = 1
- Top = 0
- Width = 9270
- End
- End
- Attribute VB_Name = "frmDiags"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Const Max_Time As Long = 1000000
- Dim ms As MEMORYSTATUS
- Dim flagnum&
- Dim dl&, s$
- Dim vernum&, verword%
- Dim mySys As SYSTEM_INFO
- Dim temp$
- Dim result&
- Dim bDynamic As Boolean
- Dim NL As String
- Dim sPlatform As String
- Dim sVersion As String
- Dim sBuild As String
- Dim retval
- Dim done As Boolean
- Dim tickStart, tickStop As Long
- Dim low(0 To 100) As Long
- Dim high(0 To 100) As Long
- Dim n As Long
- Dim iValue As Long
- Dim fValue As Double
- Dim iCount As Long
- Dim fCount As Long
- Dim iAvg As Long
- Dim iAvgTotal As Long
- Dim fAvg As Long
- Dim fAvgTotal As Long
- Dim avg As Double
- Dim iNum As Long
- Dim fNum As Double
- Dim mhz As Double
- Private Sub cmdQuit_Click()
- End
- End Sub
- Private Sub cmdTest_Click()
- Timer1.Enabled = Not Timer1.Enabled
- End Sub
- Function Overhead_Speed() As Long
- Start_Counter
- For n = 1 To Max_Time
- Next n
- Stop_Counter
- Overhead_Speed = Get_Counter
- End Function
- Sub PerformTest()
- iAvg = 0
- iCount = 0
- fAvg = 0
- fCount = 0
- iNum = Int((9 * Rnd) + 1)
- fNum = Rnd + 1
-
- 'integer addition test
- iValue = 0
- Start_Counter
- For n = 1 To Max_Time
- iValue = iNum + n
- Next n
- Stop_Counter
- temp = Get_Counter
- If temp < low(1) Then low(1) = temp
- If temp > high(1) Then high(1) = temp
- lblValue(0).Caption = Format$(temp, "#,##0") & " (" & low(1) & "/" & high(1) & ")"
- iAvg = iAvg + temp
- iCount = iCount + 1
- DoEvents
-
- ' integer multiplication test
- iValue = 0
- Start_Counter
- For n = 1 To Max_Time
- iValue = n * iNum
- Next n
- Stop_Counter
- temp = Get_Counter
- If temp < low(2) Then low(2) = temp
- If temp > high(2) Then high(2) = temp
- lblValue(1).Caption = Format$(temp, "#,##0") & " (" & low(2) & "/" & high(2) & ")"
- iAvg = iAvg + temp
- iCount = iCount + 1
- DoEvents
-
- ' integer division test
- iValue = 0
- Start_Counter
- For n = 1 To Max_Time
- iValue = n \ iNum
- Next n
- Stop_Counter
- temp = Get_Counter
- If temp < low(3) Then low(3) = temp
- If temp > high(3) Then high(3) = temp
- lblValue(5).Caption = Format$(temp, "#,##0") & " (" & low(3) & "/" & high(3) & ")"
- iAvg = iAvg + temp
- iCount = iCount + 1
-
- iAvgTotal = (iAvg / iCount)
- lblValue(4).Caption = Format$(iAvgTotal, "#,##0")
- DoEvents
-
- 'floating-point addition test
- fValue = 0
- Start_Counter
- For n = 1 To Max_Time
- fValue = fNum + n
- Next n
- Stop_Counter
- temp = Get_Counter
- If temp < low(4) Then low(4) = temp
- If temp > high(4) Then high(4) = temp
- fAvg = fAvg + temp
- fCount = fCount + 1
- DoEvents
-
- ' floating-point multiplication test
- fValue = 0
- Start_Counter
- For n = 1 To Max_Time
- fValue = n * fNum
- Next n
- Stop_Counter
- temp = Get_Counter
- If temp < low(5) Then low(5) = temp
- If temp > high(5) Then high(5) = temp
- fAvg = fAvg + temp
- fCount = fCount + 1
- DoEvents
-
- ' floating-point division test
- fValue = 0
- Start_Counter
- For n = 1 To Max_Time
- fValue = n / fNum
- Next n
- Stop_Counter
- temp = Get_Counter
- If temp < low(6) Then low(6) = temp
- If temp > high(6) Then high(6) = temp
- fAvg = fAvg + temp
- fCount = fCount + 1
- DoEvents
-
- ' calculate floating point average
- fAvgTotal = (fAvg / fCount)
- lblValue(9).Caption = Format$(fAvgTotal, "#,##0")
-
- ' calculate MHz based on P2-300 system
- temp = Max_Time / ((iAvgTotal + fAvgTotal) / 2)
- mhz = (temp / 20000) * 500
- mhz = Relative_Speed(mhz)
- lblValue(6).Caption = Format$(mhz, "#,##0") & " MHz"
- lblValue(8).Caption = Format$(temp, "#,##0") & " (" & low(4) & "/" & high(4) & ")"
- lblValue(11).Caption = Format$(temp, "#,##0") & " (" & low(5) & "/" & high(5) & ")"
- lblValue(16).Caption = Format$(temp, "#,##0") & " (" & low(6) & "/" & high(6) & ")"
- lblValue(10).Caption = Format$(temp, "#,##0") & " op/s"
- Picture2.Line (544, 10)-(593, 215), QBColor(7), BF
- Picture2.Line (544, 215 - mhz / 3)-(593, 215), QBColor(12), BF
- DoEvents
- End Sub
- Function Relative_Speed(speed As Double) As Long
- Dim temp&
- If speed > 480 Then
- temp = "500"
- ElseIf speed > 460 Then
- temp = "466"
- ElseIf speed > 440 Then
- temp = 450
- ElseIf speed > 420 Then
- temp = 433
- ElseIf speed > 380 Then
- temp = 400
- ElseIf speed > 360 Then
- temp = 366
- ElseIf speed > 340 Then
- temp = 350
- ElseIf speed > 320 Then
- temp = 333
- ElseIf speed > 280 Then
- temp = 300
- ElseIf speed > 260 Then
- temp = 266
- ElseIf speed > 240 Then
- temp = 250
- ElseIf speed > 220 Then
- temp = 233
- ElseIf speed > 190 Then
- temp = 200
- ElseIf speed > 170 Then
- temp = 180
- ElseIf speed > 160 Then
- temp = 166
- ElseIf speed > 140 Then
- temp = 150
- ElseIf speed > 125 Then
- temp = 133
- ElseIf speed > 110 Then
- temp = 120
- ElseIf speed > 95 Then
- temp = 100
- ElseIf speed > 80 Then
- temp = 90
- ElseIf speed > 70 Then
- temp = 75
- ElseIf speed > 60 Then
- temp = 66
- ElseIf speed > 45 Then
- temp = 50
- ElseIf speed > 38 Then
- temp = 40
- ElseIf speed > 28 Then
- temp = 33
- ElseIf speed > 22 Then
- temp = 25
- ElseIf speed > 18 Then
- temp = 20
- ElseIf speed > 14 Then
- temp = 16
- Else
- temp = 12
- End If
- Relative_Speed = temp
- End Function
- Sub Start_Counter()
- tickStart = GetTickCount
- End Sub
- Function Get_Counter() As Long
- Get_Counter = tickStop - tickStart
- End Function
- Sub Stop_Counter()
- tickStop = GetTickCount
- End Sub
- Sub Display_Information()
- Dim freq As FREQ_INFO
- Dim sBuild$
- ms.dwLength = Len(ms)
- GlobalMemoryStatus ms
- lblPhysMem = Format$(ms.dwTotalPhys, "#,###,###,##0 ")
- lblMemAvail = Format$(ms.dwAvailPhys, "#,###,###,##0") & " (" & Format$(ms.dwMemoryLoad / 100, "##0%") & " FREE)"
- lblPageFile = Format$(ms.dwTotalPageFile, "#,###,###,##0 ")
- lblAvailPage = Format$(ms.dwAvailPageFile, "#,###,###,##0 ")
- lblTotalVirtual = Format$(ms.dwTotalVirtual, "#,###,###,##0 ")
- lblAvailVirtual = Format$(ms.dwAvailVirtual, "#,###,###,##0 ")
- myVer.dwOSVersionInfoSize = 148
- dl& = GetVersionEx&(myVer)
- Select Case myVer.dwPlatformId
- Case VER_PLATFORM_WIN32S: sPlatform$ = "WIN32S"
- Case VER_PLATFORM_WIN32_WINDOWS: sPlatform$ = "WINDOWS 95"
- Case VER_PLATFORM_WIN32_NT: sPlatform$ = "WINDOWS NT"
- End Select
- csd = myVer.szCSDVersion
- sBuild = Trim(Str(myVer.dwBuildNumber And &HFFFF&))
- If sBuild = "1998" Then
- sPlatform$ = "WINDOWS 98"
- End If
- sPlatform$ = sPlatform$ & ", Version " & myVer.dwMajorVersion & "." & myVer.dwMinorVersion & ", Build " & sBuild
- lblPlatform = sPlatform$
- Dim n$
- n$ = String$(MAX_COMPUTERNAME_LENGTH + 1, 0)
- Dim sz&
- sz& = MAX_COMPUTERNAME_LENGTH + 1
- dl& = GetComputerName(n$, sz)
- lblComputerName = n$
- Dim retw, reth As Long
- retw = GetSystemMetrics(SM_CXSCREEN)
- reth = GetSystemMetrics(SM_CYSCREEN)
- lblScreenSize = retw & " x " & reth
- Select Case GetKeyboardType(0)
- Case 0: Label1.Caption = "Error"
- Case 1: Label1.Caption = "IBM PC/XT 83"
- Case 2: Label1.Caption = "Olivetti ICO 102"
- Case 3: Label1.Caption = "IBM PC/AT 84"
- Case 4: Label1.Caption = "IBM Enhanced 101"
- Case 5: Label1.Caption = "Nokia 1050"
- Case 6: Label1.Caption = "Nokia 9140"
- Case 7: Label1.Caption = "Japanese keyboard"
- Case Else: Label1.Caption = "Unknown Type: " & GetKeyboardType(1)
- End Select
- Dim temp$
- Select Case CPUID
- Case 0: temp = "8086/8088" ' 32-bit code...this will never show up
- Case 1: temp = "80186" ' 32-bit code...this will never show up
- Case 2: temp = "80286" ' 32-bit code...this will never show up
- Case 3: temp = "80386"
- Case 4: temp = "80486"
- Case 5: temp = "P5 Pentium"
- Case 6: temp = "P6 Pentium"
- Case 7: temp = "P7 Processor"
- Case 8: temp = "P8 Processor"
- Case 9: temp = "P9 Processor"
- End Select
- Select Case (CPUIDExt Mod 1000) \ 100
- Case 3: temp = "P5 Pentium"
- Case 4: temp = "P6 Pentium"
- Case 5: temp = "P7 Pentium II"
- Case 6: temp = "P8 Pentium II (100MHz Bus)"
- Case 7: temp = "P9 Pentium II (Newer)"
- Case Else: temp = "Unknown"
- End Select
- lblProcessor = temp
- Select Case (CPUIDExt \ 1000)
- Case 0: lblCPUType = "Standard"
- Case 1: lblCPUType = "OEM"
- Case 2: lblCPUType = "Dual CPU"
- End Select
- lblCPUModel = (CPUIDExt Mod 100) \ 10 & " / " & (CPUIDExt Mod 10)
- lblCPUFeatures = CPUFeatures
- If (CPUFeatures And 1) Then lblFPU = "Present" Else lblFPU = "Not Found"
- If (CPUFeatures And 2) Then lblEnhanced = "Supported" Else lblEnhanced = "Not Supported"
- End Sub
- Private Sub Form_Load()
- Me.Show
- done = False
- Randomize
- Display_Information
- For n = 0 To 100
- low(n) = 1000000
- high(n) = 0
- Next n
- DoEvents
- Do Until done
- lblValue(18).Caption = GetTickCount()
- PerformTest
- Display_Information
- Loop
- End Sub
-