在C#中如何得到程序开始运行 和运行结束时候的时间?

[复制链接]
查看11 | 回复2 | 2013-4-27 14:52:08 | 显示全部楼层 |阅读模式
举个例子。代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using System.Collections;namespace ConsoleApplication3{
class Program
{
static void Main(string[] args)
{
//当前时间
DateTime now1 = DateTime.Now;
//...
回复

使用道具 举报

千问 | 2013-4-27 14:52:08 | 显示全部楼层
DateTime.Now这是获取当前时间,分别放在开始和结尾的时候...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行