Boost logo

Boost-Build :

Subject: Re: [Boost-build] measuring command time in bjam
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2017-11-06 22:21:17


AMDG

On 11/06/2017 03:03 PM, Stefan Seefeld via Boost-build wrote:
> I just notice that bjam measures time (via `timestamp_current()`) on non-Windows
> systems by simply calling `time()`, rather than something more precise such as
> `gettimeofday()`. Do you know why ?
>

  Historical reasons, probably. timestamp_current needs to be
be consistent with the code that reads the file timestamps,
which uses struct stat.m_time (which is a time_t). The code
was updated to get higher resolution on Windows, but not for
others.

In Christ,
Steven Watanabe


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk