Re: Why is this valued zeroed?

2018-01-12 Thread Marc via Digitalmars-d-learn
On Friday, 12 January 2018 at 05:14:12 UTC, Jonathan M Davis wrote: On Thursday, January 11, 2018 14:07:18 Ali Çehreli via Digitalmars-d-learn wrote: [...] And if all what you're doing is printing the value out, you might as well just print the Duration directly rather than calling total. Du

Re: Why is this valued zeroed?

2018-01-11 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, January 11, 2018 14:07:18 Ali Çehreli via Digitalmars-d-learn wrote: > On 01/11/2018 12:21 PM, Marc wrote: > > I stuck at this and can't figure out the reason why the value of the > > variable ds is 0 when I do this: startTime = MonoTime.currTime; > > It's not clear which of the two

Re: Why is this valued zeroed?

2018-01-11 Thread Ali Çehreli via Digitalmars-d-learn
On 01/11/2018 12:21 PM, Marc wrote: > I stuck at this and can't figure out the reason why the value of the > variable ds is 0 when I do this: startTime = MonoTime.currTime; It's not clear which of the two statements you're talking about. >> http.onProgress = (size_t dltotal, size_t dlnow, >>

Re: Why is this valued zeroed?

2018-01-11 Thread Steven Schveighoffer via Digitalmars-d-learn
On 1/11/18 3:21 PM, Marc wrote: I stuck at this and can't figure out the reason why the value of the variable ds is 0 when I do this: startTime = MonoTime.currTime; if I remove that statement, the value of ds isn't zeroed, it has the actual number of seconds. But I can't figure out, ds is of in

Why is this valued zeroed?

2018-01-11 Thread Marc via Digitalmars-d-learn
I stuck at this and can't figure out the reason why the value of the variable ds is 0 when I do this: startTime = MonoTime.currTime; if I remove that statement, the value of ds isn't zeroed, it has the actual number of seconds. But I can't figure out, ds is of integer type and such, it is copie