[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gambas-devel
Subject:    Re: [Gambas-devel] New Timer Function
From:       Benoit Minisini <gambas () users ! sourceforge ! net>
Date:       2004-09-15 12:20:29
Message-ID: 200409151420.29206.gambas () users ! sourceforge ! net
[Download RAW message or body]

On Tuesday 14 September 2004 20:01, Roger Hallgren wrote:
> I'd like to see a new Timer fuction added to Gambas that works like VB's
> Timer, maybe name it Timer2 ... In VB the Timer returns the time since
> midnight in milliseconds then resets to zero at midnight and starts over.
>
> Thanks for reading this.
> Roger Hallgren
>
>

Another lazy man :-)

FUNCTION Timer2() AS Float

  RETURN CFloat(Frac(Now)) * 1000

END

-- 
Benoit Minisini
mailto:gambas@users.sourceforge.net


-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
_______________________________________________
Gambas-devel mailing list
Gambas-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic