我想以秒为单位计算当前时间并将其用作我的 jmeter 测试计划中的参数。默认情况下,时间以毫秒为单位。
有人可以帮我吗。
最佳答案
使用 __time格式字符串为 /1000
的函数.
${__time(/1000,)} - to get time in seconds
来自 JMeter DOC:
For example, "/1000" returns the current time in seconds since the epoch.
关于jmeter-如何以秒为单位获取当前日期和时间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42364226/