Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Microseconds in XSJS

$
0
0

Hello,

 

i'm facing one problem. My client has this code in php

 

$start_time = microtime(true); // with this you get the current timestamp with microseconds

 

//code to meassure it's performance here...

...

 

$time = microtime(true) - $start_time;

 

 

 

So they want to meassure how long it takes to execute the code.

 

But a microseconds precission will be needed...

 

I've tried with Date(), CURRENT_TIMESTAMP and now(), but all i get is milliseconds precission...

 

Is there a way to implement the above code in XSJS??

 

 

 

Best regards,

 

Luis.


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>