Sub Main()
Dim start As Date
start = now()
Call A
Call B
Call C
Msgbox Format(now - start, "HH:mm:ss")
End Sub
Sub main()
Dim ds As Date, de As Date
ds = TimeValue(Now)
Call sub1
Call sub2
de = TimeValue(Now)
Dim dif As Double, hh As Integer, mm As Integer, ss As Integer
dif = DateDiff("s", ds, de)
ss = dif Mod 60
dif = dif / 60
mm = dif Mod 60
dif = dif / 60
hh = dif
MsgBox (CStr(hh) + "時" + CStr(mm) + "分" + CStr(ss) + "秒")
End Sub