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.