NetXMS Support Forum

English Support => General Support => Topic started by: johnnyva on March 02, 2021, 09:19:26 PM

Title: Millisecond resolution in NXSL
Post by: johnnyva on March 02, 2021, 09:19:26 PM
If I wanted to capture the duration between two points in time within NetXMS using NXSL, is it possible to capture millisecond resolution?

Currently I'm just using time() method at start and end time then calculating diff, but this only gives second resolution.
Title: Re: Millisecond resolution in NXSL
Post by: Victor Kirhenshtein on March 02, 2021, 10:09:42 PM
Currently it's not possible. I just added new function for that - GetCurrentTimeMs(). It will be available in next patch release.

Best regards,
Victor
Title: Re: Millisecond resolution in NXSL
Post by: johnnyva on March 02, 2021, 10:38:06 PM
Awesome! Thanks so much!