Converting Duration to TickDuration

Vladimir Panteleev vladimir at thecybershadow.net
Mon Sep 12 19:13:02 PDT 2011


On Tue, 13 Sep 2011 05:01:31 +0300, Jonathan M Davis <jmdavisProg at gmx.com>  
wrote:

> What are you doing that you want to create a TickDuration from a  
> Duration?

On the one side, I have a module for running scheduled events. Event  
timing is specified using a TickDuration, indicating the time interval  
after which to run the event.

On the other side, I have an application which replays an event log from a  
file. Events are timestamped in stdTime format, and are stored in SysTime  
instances. Subtracting one SysTime instance from another returns a  
Duration.

-- 
Best regards,
  Vladimir                            mailto:vladimir at thecybershadow.net


More information about the Digitalmars-d-learn mailing list