Converting Duration to TickDuration
    Jonathan M Davis 
    jmdavisProg at gmx.com
       
    Sun Sep 18 03:27:01 PDT 2011
    
    
  
On Tuesday, September 13, 2011 04:32:28 Vladimir Panteleev wrote:
> The simplest way I found is:
> TickDuration.from!"hnsecs"(duration.total!"hnsecs")
> 
> Is there a simpler way?
There's now a pull request which adds opCast to Duration which casts to 
TickDuration: https://github.com/D-Programming-Language/druntime/pull/73
- Jonathan M Davis
    
    
More information about the Digitalmars-d-learn
mailing list