一个基于其他模块,快速执行时间处理的模块|A module that performs time processing quickly based on other modules
Project description
FastDataTime 时间处理包 | Fastdatatime time processing package
使用方法在作者的第三方仓库中,可以自行查看 The usage method is in the author's third-party warehouse and can be used by yourself
codechina.csdn 教程链接|Tutorial links
FastDataTime 只是一个简单的时间处理库,可以快速输出时间。
FastDataTime It is just a simple time processing library, which can output time quickly.
联系方式|contact information:qq:2097632843 邮件|e-mail:mc2005wj@163.com 使用方法
导入库|Import library: from FastDataTime import OStime
或|or from FastDataTime import *
讲解OStime函数|Explain the 'OStime' function : OStime(time_a) time_a:有很多值|time_ a: There are many values.
示例|Example:
from FastDataTime import OStime as OS
OS.OStime('help')
结果|result:
各命令 对应各显示时间 如下:
==============================================================
1.nyr 获取当前年月日 使用方法:OStime('nyr')
2.12xs 获取当前12小时形式的时间 使用方法:OStime('12xs')
3.24xs24小时形式的时间 使用方法:OStime('24xs')
4.jh 获取当前年月日时分秒的时间 使用方法:OStime('jh')
5.m 获取当前时间的秒,为数字输出 使用方法:OStime('m')
6.f 获取当前时间的分,为数字输出 使用方法:OStime('f')
7.s 获取当前时间的时,为数字输出 使用方法:OStime('s')
8.r 获取当前时间的日期,为数字输出 使用方法:OStime('r')
9.y 获取当前时间的月,为数字输出 使用方法:OStime('y')
10.n 获取当前时间的年,为数字输出 使用方法:OStime('n')
11.GMT-8-Time_MS 获取GMT-8毫秒时间,数字输出 使用方法:OStime('GMT-8-Time_MS') 时间间隔1000ms"
12.Running_time 获取程序运行时间(有误差),数字输出 使用方法:OStime('Running_time')
13.stamp 获取时间戳
14.ctime Wed Sep
讲解Dtime函数
导入: from FastDataTime import
示例:
from FastDataTime import Dtime
Dtime.run_time()#获取时间不断系统输出
number 等于 数字和浮点数 属于输出时间间隔
Dtime.run_time('number')
如: Dtime.run_time('0.1')#每0.1毫秒输出系统时间
讲解programtime函数
导入:from FastDataTime import
示例:
from FastDataTime import programtime as pr
pr.get_program('it' )
参数:get_program(com, get_stmt, get_number, re, get_print)
com: 命令 有 'it','at'两个命令。
命令:'it' 获取程序运行时间,可添加次数。
在'it'命令下参数: get_stmt: 要计算程序变量名。 get_number: 计算次数
如:
get_program('it', xxx, '5')# xxx代表变量名,5代表运行次数
在'at'命令下参数: get_stmt: 要计算程序变量名。 re:计算重复次数。 get_number:要计算的次数。
如:
get_program('at', xxx, '2', '5')# xxx代表变量名,2代表重复次数,5代表运行次数。
剩余待完善............................................
#############################################################
PYmili
联系我
QQ:2097632843
版本:0.0.5
The display time corresponding to each command is as follows:
==============================================================
1.nyr get the current month, year and day usage: ostime ('nyr ')
2.12xs get the current 12 hour time usage: OStime('12xs')
3.24xs 24-hour time usage: OStime('24xs')
-
jh obtain the time of the current month, day, hour, minute and second. Usage: OStime('jh')
-
m obtain the second of the current time, which is digital output. Usage: OStime('m')
-
f obtain the minute of the current time, which is digital output. Usage: OStime('f')
-
s when obtaining the current time, it is digital output. Usage: OStime('s')
-
r get the date of the current time, which is digital output. Usage: OStime('r')
-
y obtain the month of the current time, which is the digital output. Usage: OStime('y')
-
n get the year of the current time, which is the digital output usage method: OStime('n')
11.GMT-8-Time_MS obtains GMT-8 ms time, and the digital output method is OStime('GMT-8-Time_MS') interval 1000ms
12.Running_time to obtain the running time of the program (with error). How to use digital output: OStime('Running_time')
13.stamp Get timestamp
14.ctime Wed Sep
Explain dtime function
Import: from fastdatatime import
Example:
from FastDataTime import Dtime
Dtime.run_time() # get the time constant system output
Number equals numbers and floating-point numbers, belonging to the output interval
Dtime.run_time('number')
For example: dtime.run_Time ('0.1') # output system time every 0.1 ms
Explain the programtime function
Import: from fastdatatime import
Example:
from FastDataTime import programtime as pr
pr.get_ program('it')
Parameter: get_program(com, get_stmt, get_number, re, get_print)
COM: the command has two commands, 'it' and 'at'.
Command: 'it' gets the program running time and can be added times.
Parameters under the 'it' command: get_ Stmt: the name of the program variable to be evaluated. get_ Number: number of calculations
For example:
get_ Program ('it', XXX,'5') # XXX represents the variable name and 5 represents the number of runs
Parameters under the 'at' command: get_ Stmt: the name of the program variable to be evaluated. Re: calculate the number of repetitions. get_ Number: the number of times to calculate.
For example:
get_ Program ('at', XXX, '2', '5') # XXX represents the variable name, 2 represents the number of repetitions, and 5 represents the number of run
Remaining to be improved
######################################################################
PYmili
Contact me
QQ:2097632843
ail: mc2005wj@163.com
Version: 0.0.5
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file FastDataTime-0.0.8.tar.gz.
File metadata
- Download URL: FastDataTime-0.0.8.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1818b6333392c1eaf0e6eb0b290ccde4815651106c950fd7471e0ba63c0b1f0
|
|
| MD5 |
27e7944161d9b546580c1c0aa0766381
|
|
| BLAKE2b-256 |
ed80f77295828bf9a3eefe75d66c66f60a0a3bf6933e99dff6d94ad8e0929e74
|
File details
Details for the file FastDataTime-0.0.8-py2.py3-none-any.whl.
File metadata
- Download URL: FastDataTime-0.0.8-py2.py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d23e38ec00d84ae5b010bd8526c0ee82422a5a3bcc4f2ceea9ce4a53b31f968
|
|
| MD5 |
398263e5d46310423a6e37015b90a402
|
|
| BLAKE2b-256 |
dc2d784d73a46e6272a108dcb8278534135d772a27fc740039abd7fc11eac57e
|