Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 query time
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
masterfenix




PostPosted: Sat Dec 31, 2005 3:01 pm   Post subject: query time

I am making a little database program, where I have made a module that works with records.


basically theres a 'delete' proc,which takes a recrod and changes the "isDeleted" parameter to true.

NOW... my question is.. i wanna display like "Query took 0.002 seconds" or something like that. I know the proc goes by REALLY quickly.. so .. but even for other procs.. is there somethng I could use to start the time at 0 and put it out after the proc has ended.
Sponsor
Sponsor
Sponsor
sponsor
Cervantes




PostPosted: Sat Dec 31, 2005 5:49 pm   Post subject: (No subject)

code:

proc declaration
    var start_time := Time.Elapsed
    % actual procedure
    put "Query took ", (Time.Elapsed - start_time) / 1000, " seconds."
end
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: