scrt生成时间戳
SecureCRT 日志添加时间戳(精确到毫秒)
[%h-%m-%s.%t] 其中 %t 表示毫秒
设置以及效果截图如下:
python使用时间戳画图
代码
'''
python帧间隔绘图脚本使用:
1.首先需要安装Anaconda3(python是3+版本)
2.然后添加环境变量
3.然后cd 到Anaconda3安装目录,我的是C:\ProgramData\Anaconda3
4.使用方式C:\ProgramData\Anaconda3>python C:\Users\tsh\Desktop\drawByFramejitter.py C:\Users\tsh\Desktop\drawByFramejitter.log
PS:1.这里python用的不是自己安装的版本,是C:\ProgramData\Anaconda3目录下的python工具
2.session用的是scrt添加的时间戳
'''
import sys
import re
import pylab
jitterlist = []
jitterlistlast = []
x = []
searchstr = r'\[(\d+)-(\d+)-(\d+)\.(\d+)\]'
lastMinute &#