Imports System.Math
Public Class Form1
  Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "


  Public Sub New()
    MyBase.New()

    'This call is required by the Windows Form Designer.
    InitializeComponent()

    'Add any initialization after the InitializeComponent() call

  End Sub

  'Form overrides dispose to clean up the component list.
  Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
    If disposing Then
      If Not (components Is Nothing) Then
        components.Dispose()
      End If
    End If
    MyBase.Dispose(disposing)
  End Sub

  'Required by the Windows Form Designer
  Private components As System.ComponentModel.IContainer

  'NOTE: The following procedure is required by the Windows Form Designer
  'It can be modified using the Windows Form Designer.  
  'Do not modify it using the code editor.
  Friend WithEvents btnStart As System.Windows.Forms.Button
  Friend WithEvents txtStart As System.Windows.Forms.TextBox
  Friend WithEvents txtEnd As System.Windows.Forms.TextBox
  <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
    Me.btnStart = New System.Windows.Forms.Button()
    Me.txtStart = New System.Windows.Forms.TextBox()
    Me.txtEnd = New System.Windows.Forms.TextBox()
    Me.SuspendLayout()
    '
    'btnStart
    '
    Me.btnStart.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
    Me.btnStart.Location = New System.Drawing.Point(40, 176)
    Me.btnStart.Name = "btnStart"
    Me.btnStart.TabIndex = 0
    Me.btnStart.Text = "&Start"
    '
    'txtStart
    '
    Me.txtStart.Location = New System.Drawing.Point(32, 24)
    Me.txtStart.Name = "txtStart"
    Me.txtStart.Size = New System.Drawing.Size(112, 20)
    Me.txtStart.TabIndex = 1
    Me.txtStart.Text = ""
    '
    'txtEnd
    '
    Me.txtEnd.Location = New System.Drawing.Point(32, 56)
    Me.txtEnd.Name = "txtEnd"
    Me.txtEnd.Size = New System.Drawing.Size(112, 20)
    Me.txtEnd.TabIndex = 2
    Me.txtEnd.Text = ""
    '
    'Form1
    '
    Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
    Me.ClientSize = New System.Drawing.Size(292, 273)
    Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.txtEnd, Me.txtStart, Me.btnStart})
    Me.Name = "Form1"
    Me.Text = "Form1"
    Me.ResumeLayout(False)

  End Sub

#End Region

  Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

  End Sub

  Private Sub btnStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStart.Click
    Dim Start As Date, MyEnd As Date
    Dim Calc As Single
    Dim Here As String, There As String
    Dim looper As Integer, i As Long


    '   txtStart = CStr(TimeString)
    txtStart.Text = TimeString

    Calc = 1.0
    For i = 1 To 10000000
      Calc = Sqrt(i)
    Next i
    txtEnd.Text = TimeString




  End Sub
End Class
