Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: MySQL Query Time DBI

by zebedee (Pilgrim)
on Nov 10, 2008 at 07:11 UTC ( [id://722565]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    static int
    com_go(String *buffer,char *line __attribute__((unused)))
    {
      char          buff[200], time_buff[32], *pos;
    
  2. or download this
            sprintf(buff,"%ld %s in set",
                    (long) mysql_num_rows(result),
                    (long) mysql_num_rows(result) == 1 ? "row" : "rows");
    
  3. or download this
    static void end_timer(ulong start_time,char *buff)
    {
      nice_time((double) (start_timer() - start_time) /
    ...
      end_timer(start_time,buff+2);
      strmov(strend(buff),")");
    }
    
  4. or download this
    static void nice_time(double sec,char *buff,bool part_second)
    {
      ulong tmp;
    ...
      else
        sprintf(buff,"%d sec",(int) sec);
    }
    
  5. or download this
    static ulong start_timer(void)
    {
    #if defined( __WIN__) || defined( OS2) || defined(__NETWARE__)
    ...
      return times(&tms_tmp);
    #endif
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://722565]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-03-29 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found