Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Measure Time between events (ms resolution)

2020-05-13
2020-05-14
  • justthefacts77 - 2020-05-13

    Hey folks, dont need Time-of-day, just raw millisecond resolution delta duration.

    Not sure if thats too fine.

     
  • i-campbell

    i-campbell - 2020-05-13

    Try this

    VAR
        Start,End,Duration : TIME;
    END_VAR
    
    Start := TIME();
    //Do something that takes time
    End := TIME();
    Duration := End - Start;
    
     
    πŸ‘
    1
    • justthefacts77 - 2020-05-14

      Perfect! Thanks much. Great forum here for sure.

       

Log in to post a comment.