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