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