Page 1 of 1

Posted: Mon Dec 30, 2002 12:41 am
by BackupUser
Restored from previous forum. Originally posted by cor.

Searched the forum but could not find.

Start displaying realtime
mm:sec:msec

starting from 00:00:00

or with a predefined time like 01:20:03

when pressed e.g a button get the time elapsed from starting or predefined time

Thanks

Using Windows 98 SE
Registered PB version : 3.40 (Windows)
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com

Posted: Mon Dec 30, 2002 1:12 am
by BackupUser
Restored from previous forum. Originally posted by PB.

> get the time elapsed from starting or predefined time

This doesn't do milliseconds, so it probably doesn't help you much:

Code: Select all

TimeStart=Date(2002,12,30,12,00,00) ; 12:00 pm on Dec 30, 2002.
TimeStop =Date(2002,12,30,13,30,00) ;  1:30 pm on Dec 30, 2002.
;
; Elapsed time should be 1 hr 30 min, so let's see!  :)
;
Debug FormatDate("%hh:%ii:%ss",TimeStop-TimeStart)