Convert TickDuration to Duration?

David Nadlinger see at klickverbot.at
Wed Jun 8 13:36:51 PDT 2011


Did I miss a way to convert a TickDuration to a Duration? If there 
really is none, is there a reason for this?

Having to do an immediate conversion to a hnsecs long feels somehow odd:

---
Duration maxFlushInterval;
if (dur!"hnsecs"(flushTimer.peek.hnsecs) > maxFlushInterval) { … }
---

David


More information about the Digitalmars-d-learn mailing list