Boost logo

Boost Users :

From: Zeljko Vrba (zvrba_at_[hidden])
Date: 2007-07-26 12:59:40


On Thu, Jul 26, 2007 at 05:28:50PM +0200, Philippe Mondon wrote:
>
> //long returnVal = tduration.total_milliseconds();
> long returnVal = tperiod.length().total_milliseconds();
>
>
> Unfortunately, it gives only a 8 digit number (in java you've got a 13
> digit number when using currentTimeMillis) so I suspect that it does not
> give a duration since Jan the 1st 1970 (which is java reference).
>
Integer overflow: long is 32 bits on 32-bit machine, and 13 digits does
*not* fit into 32 bits. ("long" is incidentally 64-bit in Java).


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net