Code Monkey home page Code Monkey logo

Comments (5)

SkylerLipthay avatar SkylerLipthay commented on July 18, 2024 1

Apologies @efoerster. It just dawned on me that 0.1.1 probably failed to fix the problem. I misunderstood the logic required of duk_config.h. I have limited testing capabilities with Windows... but it should be fixed now (302d7a4) with 0.1.2.

from ducc.

efoerster avatar efoerster commented on July 18, 2024 1

Seems to be fixed, thanks for your fast response.

from ducc.

SkylerLipthay avatar SkylerLipthay commented on July 18, 2024

Hm, I see... So DUK_USE_DATE_NOW_WINDOWS_SUBMS is being defined during compilation on Windows 8/10 but then GetSystemTimePreciseAsFileTime fails to resolve at runtime under Windows 7. That's an unfortunate consequence. If I were on the Duktape team I would have done it the other way around. (So that the user would specify a flag to activate this poorly supported sub-millisecond accuracy.)

I'm tempted to just #define DUK_USE_DATE_NOW_WINDOWS. If I'm understanding things correctly, this would sacrifice sub-millisecond timer accuracy on Windows 8/10, but at least it would fix this issue. I highly doubt this would affect any current ducc users... Besides, supporting such granular feature flags seems against the nature of ducc, which intentionally hides such implementation details.

Is this OK with you?

(Alternatively it looks like you can supply your own time functions that could perhaps dynamically fallback to GetSystemTime if GetSystemTimePreciseAsFileTime is missing. I'm guessing this is overkill for your purposes.)

from ducc.

efoerster avatar efoerster commented on July 18, 2024

Sure, thats even better. Thank you!

from ducc.

SkylerLipthay avatar SkylerLipthay commented on July 18, 2024

Alright give ducc 0.1.1 a shot. Close this issue if that fixes the user's issue or let me know if further work is needed :)

from ducc.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.