如何计算测验时间? [英] How to calculate the Time for Quiz?

查看:122
本文介绍了如何计算测验时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是莫汉,

我有疑问请帮助我....

现在,我正在为测验比赛创建网站

测验随机运行且有时间限制.

我的测验存储在sql服务器数据库中.(正在访问ado.net)

并在某个时间显示该网页(右上角)

自动完成时间限制后,结果将显示

完成我的问题结果将显示.

我的问题是,
如何在回答问题时减少我的时间
这样我的时间减少了(10,9,8,...分钟减少到...,4,3,2,1,0秒)

我正在等待mohan的Ur重播....

hi i am mohan,

I have a doubt please help me ....

Now i am creating website for Quiz competition

Quiz running randomly with time limit ok.

my quiz stored in sql server database.(accessing ado.net)

and at a TIME Time is Displaying That Web page(top right corner)

after finishing Time Limit Automatically Result will be dispalyed
or
finished my questions result will be displayed.

My Question is,
how to decreasing my TIME at answer the questions Process
Like that my time decreasing(10,9,8,... minutes to ...,4,3,2,1,0 seconds)

I am Waiting Ur Replay by mohan....

推荐答案

有很多可用的JavaScript计时器,例如http://www.w3schools.com/js/js_timing.asp [
There are a huge number of JavaScript timers available, like this one, http://www.w3schools.com/js/js_timing.asp[^]. Have you searched for any or tried anything yourself?


这是ASP.NET.您也可以使用System.DataTime.Now在服务器端测量时间.如果您减去两个System.DateTime实例,则会收到时间戳之间的时间跨度.测验的准确性应该足够好.我认为服务器端计时更好:计算结果时不要欺骗,很方便.

—SA
This is ASP.NET. You can also measure time on server side using System.DataTime.Now. It you subtract two instances of System.DateTime you receive time span between the time stamps. The accuracy should be good enough for a quiz. I think server-side timing is better: no way to cheat, handy when you calculate the results.

—SA


这篇关于如何计算测验时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆