Skip to content

boost 1.64 and Python 3.8 time.sleep() function is not working on Windows host. #316

@mbilal100

Description

@mbilal100

Hi,

I'm seeing very odd behavior of boost python3 on Windows host where time.sleep() function is not working.
We're extending and embedding Python 3.8.2 with boost 1.64. Note, there is no issue found for Linux host.

I have tested and confirmed that other Python time class function (i.e time.time() or time.ctime() etc ) are still be working fine but not time.sleep() , it is also confirmed that stand alone Python 3 time.sleep() is working on Windows.

We have already successfully embedded, extended and using the python 2.7 with boost 1.64 for both Linux and Windows host, but because of Python 2 has now EOF that's why we are moving on Python 3.

Following are example output from Python script on both host.

time.sleep(5)
print("elapsed: %d" % (time.time() - start))

When I run that on Linux I get correct:

 elapsed: 5

But on Windows, I get:

elapsed: 0

Thanks,
Muhammad Bilal
Mentor, A Simens Business.
muhammad_bilal@mentor.com

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions