"TYRCHRONO"
from
Yves ROCHAT
{------------------------------------------------------------------------------}
{ Copyright : © Copyright 1995 by Y. Rochat }
{ Date de creation : 20/10/1995 }
{ Last Update : 08/11/1995 }
{ Version Number : 1.10 }
{ Langage Programmation : DELPHI 1.01 }
{------------------------------------------------------------------------------}
{ YRCHRONO.PAS : A CHRONOMETER COMPONENT for DELPHI that let you }
{ calculate the time elapsed between two events even }
{ if they do not happen the same day. }
{ }
{ HOW TO USE IT : 1) Put a TYRChronometre (by ex. MyChrono) in you Delphi form }
{ 2) Make a call to MyChrono.Reset to reset the chronometer }
{ 3) Make a call to MyChrono.Start to start the chronometer }
{ 4) Make a call to MyChrono.Stop to stop the chronometer }
{ 5) Make a call to MyChrono.TimeElapsed to calculate the time }
{ elapsed between the last call to MyChrono.Start }
{ 6) Make a call to MyChrono.TotalTimeElapsed to calculate the }
{ time elapsed between all call to MyChrono Start and Stop }
{ 7) Make a call to MyChrono.Time2Str to display a formated }
{ string (HHHHH:MM:SS.CC) of TimeElapsed or TotalTimeElapsed}
{ 8) A call to MyChrono.Jours_Ecoule let you calculate the nb. }
{ of days which separate date D1 from date D2 (Di:TDateTime)}
{------------------------------------------------------------------------------}
{ IMPORTANT }
{ }
{ You can use this code as is and you are FREE to copy/distribute provided that}
{ this notice is not modified and included in the distrubution pack. }
{ I'll be more than happy to hear from you for your comments about a real-life }
{ use of this code. Please send your comments to " rochat@dma.epfl.ch " with }
{ subject field starting with the words 'TYRCHRONO'. }
{------------------------------------------------------------------------------}
{:DISCLAIMER: }
{------------ }
{ THIS SOURCE CODE IS DELIVERED AS IS. THERE IS NO REASON TO THINK THAT IT }
{ SHOULD NOT WORK AS CLAIMED. BUT JUST IN CASE, LET ME DISCLAIM THAT YVES }
{ ROCHAT CAN NOT BE HELD LIABLE IF YOU LOOSE TIME OR MONEY USING THIS CODE. }
{------------------------------------------------------------------------------}
You can get the zip file 'YRCHRONO.ZIP' at the following URL :
http://masg1.epfl.ch/rose.mosaic/rochat_data/delphi.html
Best regards
Yves Rochat
               (
geocities.com/siliconvalley/park)                   (
geocities.com/siliconvalley)