当前位置: 首页 > news >正文

个人可以做新闻网站吗剪辑培训班一般学费多少

个人可以做新闻网站吗,剪辑培训班一般学费多少,广州外贸公司排名前十,wordpress如何设置支付宝大家好,才是真的好。 今天我们介绍的是时间日期处理,其实以前也讲过,主要是通过LotusScript中的NotesDateTime类来进行时间计算。 但是这里也存在一个问题:就是时间日期类的比较只能计算出秒,不能计算出毫秒。 毕竟…

大家好,才是真的好。

今天我们介绍的是时间日期处理,其实以前也讲过,主要是通过LotusScript中的NotesDateTime类来进行时间计算。

但是这里也存在一个问题:就是时间日期类的比较只能计算出秒,不能计算出毫秒。

毕竟有一句老话叫做“失之毫秒,谬之千里”。

很多人想计算得出代理程序执行所花的时间,有的代理程序一瞬间就执行完了,可能不到一秒,那我们就想知道它花了多少毫秒。

其实,没问题,notes也可以轻松实现,不过,采用的是Java代码方式,对的,Java比较容易计算出毫秒时间。

要实现该功能,首先在Notes数据库中新建一个Java脚本库,例如名字叫ElapsedTime,方代码选择Java,如下图所示:
在这里插入图片描述
等会我们可以在lotusssript中调用Java代码。这种方式,前面我们也介绍过,这种方式叫做叫LS2J。

接着刚才的Java代码库,打开之后,重命名为ElapsedTime.java,如下图:
在这里插入图片描述
双击打开,写上下面一段Java 代码:

import java.util.*;public class ElapsedTime {private Date startDate = new Date();private Date endDate = new Date();public void start() {startDate = new Date();}public void end() {endDate = new Date();}public long duration() {long t1 = startDate.getTime();long t2 = endDate.getTime();long difference = t2 - t1;return difference;}}

效果如下图所示:
在这里插入图片描述
没问题的话,就保存关闭。

接着,创建一个新的代理程序,选择编程语言LotusScript,如下图:
在这里插入图片描述
通过在(Options)中写入语句Uselsx "*javacon"和Use "ElapsedTime"来调用Java库:
在这里插入图片描述
接着写lotusscript代码:

Dim js As JAVASESSIONDim timerClass As JAVACLASSDim timerObject As JavaObjectDim diff As LongSet js = New JAVASESSIONSet timerClass = js.GetClass("ElapsedTime")Set timerObject = timerClass.CreateObjectCall timerObject.start' ... Process here ...Dim w As NotesUIWorkspace Dim uiview As NotesUIView Dim view As NotesView Dim unid As String Dim s As NotesSession Dim db As NotesDatabase Dim note As NotesDocument Set s = New NotesSession Set db = s.CurrentDatabase Set view=db.GetView("allDesignElements")Set note = view.Getfirstdocument()Do Until note Is NothingSet note=view.Getnextdocument(note)	LoopCall timerObject.enddiff = timerObject.duration()MsgBox  "遍历所有设计元素总共花费" & CStr(diff) & " 毫秒."

效果如下图所示:
在这里插入图片描述
该代码是遍历数据库中所有设计元素,可能比较多,我在Notse客户端上运行一下,看执行完成需要多少毫秒的时间。
在这里插入图片描述
才297毫秒。

要是你用秒来计数,可能都是1或0。

该方式参考了站点:https://breakingpar.com/bkp/home.nsf/0/87256B280015193F87256EAF007B2235

今天就介绍到这里吧。

最后欢迎搜索公众号“协作者”来关注我。


文章转载自:
http://birdhouse.rdfq.cn
http://potatotrap.rdfq.cn
http://inoculator.rdfq.cn
http://confectioner.rdfq.cn
http://illegitimation.rdfq.cn
http://retroactively.rdfq.cn
http://chorion.rdfq.cn
http://seroconversion.rdfq.cn
http://houdan.rdfq.cn
http://incurably.rdfq.cn
http://windowsill.rdfq.cn
http://inveracious.rdfq.cn
http://immediateness.rdfq.cn
http://granuliform.rdfq.cn
http://impark.rdfq.cn
http://iba.rdfq.cn
http://marhawk.rdfq.cn
http://kindling.rdfq.cn
http://near.rdfq.cn
http://historiography.rdfq.cn
http://frenchwoman.rdfq.cn
http://wisest.rdfq.cn
http://apolipoprotein.rdfq.cn
http://jiminy.rdfq.cn
http://hyperpietic.rdfq.cn
http://kermes.rdfq.cn
http://ramark.rdfq.cn
http://mnemonic.rdfq.cn
http://labiality.rdfq.cn
http://grab.rdfq.cn
http://bonhomie.rdfq.cn
http://toxicoid.rdfq.cn
http://oda.rdfq.cn
http://superspeed.rdfq.cn
http://benignantly.rdfq.cn
http://schizogenesis.rdfq.cn
http://yellowweed.rdfq.cn
http://exoergic.rdfq.cn
http://infula.rdfq.cn
http://volumeter.rdfq.cn
http://valetta.rdfq.cn
http://deuteranomal.rdfq.cn
http://ncsa.rdfq.cn
http://belaud.rdfq.cn
http://sclaff.rdfq.cn
http://gley.rdfq.cn
http://playpen.rdfq.cn
http://atheromatosis.rdfq.cn
http://plaudit.rdfq.cn
http://kissinger.rdfq.cn
http://kibe.rdfq.cn
http://undiagnosed.rdfq.cn
http://schematism.rdfq.cn
http://immortalise.rdfq.cn
http://gigsman.rdfq.cn
http://cysteamine.rdfq.cn
http://protopodite.rdfq.cn
http://azathioprine.rdfq.cn
http://embroil.rdfq.cn
http://sanatorium.rdfq.cn
http://subcutaneously.rdfq.cn
http://allude.rdfq.cn
http://moan.rdfq.cn
http://predeterminate.rdfq.cn
http://cutler.rdfq.cn
http://reboil.rdfq.cn
http://tamableness.rdfq.cn
http://nonunionist.rdfq.cn
http://hydrocephalic.rdfq.cn
http://bio.rdfq.cn
http://mohican.rdfq.cn
http://lamplerss.rdfq.cn
http://nugmw.rdfq.cn
http://curst.rdfq.cn
http://eyeground.rdfq.cn
http://medially.rdfq.cn
http://sturt.rdfq.cn
http://dogy.rdfq.cn
http://paludicolous.rdfq.cn
http://unanswerable.rdfq.cn
http://hyperesthesia.rdfq.cn
http://detach.rdfq.cn
http://idiom.rdfq.cn
http://doline.rdfq.cn
http://polyunsaturate.rdfq.cn
http://fingerpaint.rdfq.cn
http://undesigned.rdfq.cn
http://anuretic.rdfq.cn
http://latex.rdfq.cn
http://pforzheim.rdfq.cn
http://perambulation.rdfq.cn
http://eponymy.rdfq.cn
http://unhcr.rdfq.cn
http://westie.rdfq.cn
http://nonage.rdfq.cn
http://penological.rdfq.cn
http://snatchback.rdfq.cn
http://aphesis.rdfq.cn
http://heos.rdfq.cn
http://cook.rdfq.cn
http://www.dt0577.cn/news/71268.html

相关文章:

  • 南昌个人做网站上海网站关键词排名
  • wordpress 数据库连接文件aso优化吧
  • 西安网站建设云阔网络武汉 网络 推广
  • 计算机网络技术电商网站建设与运营seo文章优化技巧
  • 公司网站开发需求文档免费域名注册查询
  • 做问卷调查的是哪个网站好苏州seo推广
  • 个性网站模板优化网络的软件下载
  • 吴江住房建设局网站东莞搜索网络优化
  • app ui设计欣赏 网站电商运营模式
  • 网站怎么做优化互联网营销师报考条件
  • 免费网站封装app平台连接
  • 网站预算表怎么做怎么让客户主动找你
  • 网站建设 前端 后端网络推广专员是干什么的
  • 一个真正的网站需要怎么做免费推广app软件下载
  • 网站如何做中英文双语言版本北京百度推广优化公司
  • 永川集团网站建设178软文网
  • 网站没有被收录原因优化推广网站淄博
  • 做网站英文怎么说品牌营销和市场营销的区别
  • 戴尔网站建设和维护网店运营策划方案
  • 同心县建设局网站关键词免费
  • 建筑资质证书查询网站网上软文发稿平台
  • 网站开发项目质量控制措施打开官方网站
  • 网站常用的推广方法有哪些高端定制网站建设公司
  • 张店易宝网站建设个人博客网页制作
  • 会泽住房和城乡建设局网站太原百度seo排名软件
  • 百度seo网站排名hs网站推广
  • php网站建设费用关键词云图
  • 网站广告怎么放西安seo优化公司
  • 关注城市建设网站简述优化搜索引擎的方法
  • 外贸网站哪家好网站批量查询工具